wleistra
wleistra8mo ago

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)
4 Replies
lemonek
lemonek8mo ago
The same thing also happends to me, did you manage to fix it somehow?
wleistra
wleistraOP8mo ago
Nope I had to revert the version back...
lemonek
lemonek8mo ago
@wleistra I dont have the problem anymore after updating to the @trpc/server@11.0.0-rc.373 version :))
wleistra
wleistraOP8mo ago
That's great to hear. Thanks for the update!

Did you find this page helpful?