Node.js API in beanstalk returns 502 for large amount of data

0

I have a next.js/nodejs API deployed to Beanstalk. The API is on a EC2 server and there's a ALB in between. When the data to return is large, the API returns a 502 error, indicating that something went wrong between ALB and EC2. I tried to increasee the idle timeout on the ALB from 60s to 120s but it didn't solve the issue, and anyway the 502 occurs approximately after 45s. If the data to return is not so large, the API works as expected, suggesting it is not an application problem.

Is there anything else I can check to try to solve this issue?

thanks M

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠