Parent Log:
http://ci.aztec-labs.com/e09dcc0d0838bc1c
Command: 56d3c530a47f3a72 yarn-project/scripts/run_test.sh foundation/src/json-rpc/server/safe_json_rpc_server.test.ts
Commit:
https://github.com/AztecProtocol/aztec-packages/commit/9071986bfe3af58c70d2c80c10f523e22bfe4cb4
Env: REF_NAME=gh-readonly-queue/next/pr-15133-64d1ec347b1cea9fa1b04ff6fc2984f8ee073b2b CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 20 14:52:00 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15133_amd64_x3-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_38335fc474d58c8d_next
14:52:02 {"level":40,"time":1750431122373,"pid":207561,"hostname":"pr-15133_amd64_x3-full","module":"json-rpc:server","msg":"Uncaught error in JSON RPC server call unknown: SyntaxError: Expected property name or '}' in JSON at position 1 (line 1 column 2)\n at JSON.parse (<anonymous>)\n at parse (/home/aztec-dev/aztec-packages/yarn-project/node_modules/co-body/lib/json.js:57:17)\n at AsyncFunction.module.exports [as json] (/home/aztec-dev/aztec-packages/yarn-project/node_modules/co-body/lib/json.js:41:20)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at parseBody (/home/aztec-dev/aztec-packages/yarn-project/node_modules/koa-bodyparser/index.js:87:14)\n at bodyParser (/home/aztec-dev/aztec-packages/yarn-project/node_modules/koa-bodyparser/index.js:67:19)\n at exceptionHandler (/home/aztec-dev/aztec-packages/yarn-project/foundation/src/json-rpc/server/safe_json_rpc_server.ts:83:9)\n at jsonResponse (/home/aztec-dev/aztec-packages/yarn-project/foundation/src/json-rpc/server/safe_json_rpc_server.ts:102:9)\n at compressMiddleware (/home/aztec-dev/aztec-packages/yarn-project/node_modules/koa-compress/lib/index.js:56:5) {\n status: 400,\n body: '{'\n}"}
14:52:02
PASS src/json-rpc/server/safe_json_rpc_server.test.ts
14:52:02 SafeJsonRpcServer
14:52:02 single
14:52:02
✓ calls an RPC function with a primitive parameter (84 ms)
14:52:02
✓ calls an RPC function with incorrect parameter type (14 ms)
14:52:02
✓ calls an RPC function with a primitive return type (8 ms)
14:52:02
✓ calls an RPC function with an array of classes (18 ms)
14:52:02
✓ calls an RPC function with no inputs nor outputs (9 ms)
14:52:02
✓ calls an RPC function that returns a primitive object and a bigint (7 ms)
14:52:02
✓ calls an RPC function that throws an error (7 ms)
14:52:02
✓ fails if sends invalid JSON (29 ms)
14:52:02
✓ fails if calls non-existing method in handler (7 ms)
14:52:02
✓ fails if calls method in handler non defined in schema (4 ms)
14:52:02
✓ fails if calls base object method (3 ms)
14:52:02 batch
14:52:02
✓ handles multiple requests (5 ms)
14:52:02
✓ rejects empty requests array (3 ms)
14:52:02
✓ rejects batch exceeding max size (3 ms)
14:52:02
✓ handles partial errors (11 ms)
14:52:02
✓ handles partial syntax errors (21 ms)
14:52:02 namespaced
14:52:02
✓ routes to the correct namespace (22 ms)
14:52:02
✓ fails if namespace is not found (3 ms)
14:52:02
✓ fails if method is not found in namespace (3 ms)
14:52:02
✓ fails if no namespace is provided (3 ms)
14:52:02
14:52:02
Test Suites: 1 passed, 1 total
14:52:02
Tests: 20 passed, 20 total
14:52:02
Snapshots: 0 total
14:52:02
Time: 1.185 s
14:52:02
Ran all test suites matching foundation/src/json-rpc/server/safe_json_rpc_server.test.ts
.
14:52:02
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?