NextJS body exceed limit when content sent in body is under limit.
I am sending a photo through TRPC that is then being uploaded to a server. Everything is working except sometimes it exceeds the body limit of nextjs api calls even tho I know the image is less than the limit.
Errors:
POST http://localhost:3000/api/trpc/images.create?batch=1 413 (Body exceeded 8mb limit)
which obviously errors TRPC.
3 Replies
Had this issue ourselves, the limit is far lower than 8mb
https://discord.com/channels/966627436387266600/1036278650766635118/1047024086049640470
This made it work for me
How did you guys solve this one? I just faced this problem myself, and wonder where I should add this configuration so I don't need to do it for all endpoints