tRPCttRPC
Powered by
rodrigowplR
tRPC•3y ago•
1 reply
rodrigowpl

Getting 413 error in Vercel when batching several queries (using Next pages router)

Hi guys,

I'm having a weird error on Vercel:
"LAMBDA_RUNTIME Failed to post handler success response. Http response code: 413."

I've already try to dump DB and restore locally and I can only reproduce in Vercel prod. All others pages/queries works normally, so it's not the application. The only difference is I'm executing 3,4 queries in the same screen, so I'm guessing that the lambda is getting a large payload because of query batching of these due to the 4.5mb limit.

Does that makes sense for you?

For more context, it's the same issue these guys are discussing here:
https://github.com/vercel/vercel/issues/3825

Thanks!
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

Error with v11 when using batching
ElvenEElven / ❓-help
2y ago
Next js Pages Router, TRPC
louLlou / ❓-help
5mo ago
Turn off batching for some queries?
thecahnartistTthecahnartist / ❓-help
14mo ago
Queries break when in production on Vercel; work on localhost
jaiJjai / ❓-help
4y ago