rodrigowpl
rodrigowpl12mo ago

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!
1 Reply