wleistraW
tRPC2y ago
5 replies
wleistra

Unexpected end of JSON input error after upgrade to v11.0.0-rc.366 from rc.359

We updgraded from version 11.0.0-rc.359 to 11.0.0-rc.366 and now see BAD_REQUEST error being returned for mutations which worked fine before to upgrade.

Stack:

TRPCError: Unexpected end of JSON input
    at /dir/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentType.js:25:27
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.read (/dir/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentType.js:32:21)
    at async Object.getRawInput (/dir/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentType.js:91:40)
    at async inputValidatorMiddleware (/dir/node_modules/@trpc/server/dist/unstable-core-do-not-import/middleware.js:44:26)
    at async callRecursive (/dir/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.js:154:32)
    at async callRecursive (/dir/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.js:154:32)
    at async procedure (/dir/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.js:184:24)
    at async /dir/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.js:137:30
    at async Promise.all (index 0)
Was this page helpful?