Payload Too Large (Error 414) with a 313kb JSON payload?

I’m trying to post JSON payloads (request body) to server, but I seem to be getting Payload Too Large errors on some of the POST requests - most likely those that are slightly larger in size. But the thing is - the limit according to the docs is 4.5MB, but the data I’m sending is nowhere near that size, at least not to my understanding.

Here’s a sample of a JSON payload that is considered too large: https://www.dropbox.com/scl/fi/lrshm42akngfyjb2sc36w/sample.json?rlkey=nr4ceqyn2ohsvj9e4268lj0go&e=1&dl=0

Is this really too large? As JSON file it’s only 313kb.

Solved. Was using Express body parser with default limit which was set to 100kb. Apparently that resulted in the exact same error code and message as Vercel uses.

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