tRPCttRPC
Powered by
docD
tRPC•4y ago•
18 replies
doc

TRPCClientError: Unexpected end of JSON input

Hey I am running into this issue when calling a
mutateAsync
mutateAsync
in production in Vercel (the error does not appear in localhost dev mode).

TRPCClientError: Unexpected end of JSON input

My code base is so large that I am not sure where do I start to debug. Are there any best practices that I should follow to avoid this error?

It is similar to this issue: https://github.com/trpc/trpc/discussions/1847#discussioncomment-4244990
GitHub
Error "TRPCClientError: request failed" when building a Next.js app...
When trying to build my Next.js project, I'm getting the following error: TRPCClientError: request to http://localhost:3000/api/trpc/post.test?batch=1&input=%7B%220%22%3A%7B%22json%...
Error "TRPCClientError: request failed" when building a Next.js app...
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

TRPCClientError: Unexpected end of JSON input
BachitterBBachitter / ❓-help
3y ago
TRPCClientError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON Error
azlathAazlath / ❓-help
3y ago
Unexpected end of JSON input error after upgrade to v11.0.0-rc.366 from rc.359
wleistraWwleistra / ❓-help
2y ago
TRPCClientError JSON Parse error Unrecognized token
HuzefHHuzef / ❓-help
4y ago