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 Antwort
1
Akzeptierte Antwort

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

beantwortet vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen