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 Resposta
1
Resposta aceita

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

respondido há um mês
profile picture
ESPECIALISTA
avaliado há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas