HTTP API Gateway returning 413 error "Request Entity Too Large". context.dataProcessed is 3604554

0

I'm trying to debug an issue with receiving a 413 error "Request Entity Too Large" when POSTING some data to our HTTP API using the API gateway.

This involves sending some binary data and the file is 2.6 MB. I'm aware the API gateway has payload limits but we seem to be far below that.

In the API Gateway logs, I've logged the $context.dataProcessed field and it is 3604554 bytes.

Any advice? The HTTP API will route the request to an HTTP server running on elastic beanstalk configured for only 1 instance (no load balancing)

Help greatly appreciated!

1 Answer
1
Accepted Answer

I fixed it by adjusting nginx client max body size, per this article: https://stackoverflow.com/questions/74806980/413-payload-too-large-error-nginx-ubuntu-22-04

answered 23 days ago
profile picture
EXPERT
reviewed 22 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions