tRPCttRPC
Powered by
wleistraW
tRPC•2y 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)
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)
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

TRPCClientError: Unexpected end of JSON input
BachitterBBachitter / ❓-help
3y ago
TRPCClientError: Unexpected end of JSON input
docDdoc / ❓-help
4y ago
Upgrading from v10 to v11
typedefTtypedef / ❓-help
9mo ago
TSC errors after upgrading to v11
EvanEEvan / ❓-help
2y ago