Nextjs API Response Size Error

whenever I login with Id this {id : sushil@gmail.com pass:123456} the posts are not fetched as it shows error
“[ERROR] [1685353098212] LAMBDA_RUNTIME Failed to post handler success response. Http response code: 413.”
But it get response/posts data for other users.
Note: Id given above has alot of posts I can solve this by deleting some posts even though I want to know how can solve this problem .

Link to github repo: GitHub - iprime2/twitter-clone-nextjs-ts
Link to webapp : https://twitter-clone-nextjs-ts.vercel.app
{id : sushil@gmail.com pass:123456}

I think it is just a hard limit.

I guess you would have to do some form of pagination of the data so it isn’t all of it at once.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.