API Gateway Timeouts from Lambda

0

Hello, so I have API Gateway integrated with a java lambda method, but I'm getting 504 Errors from API gateway when I modify the java method in such a way that it takes several hundred ms longer.
Lambda has no errors and is completing successfully, and only takes about a second or two to finish. My Lambda timeout is set to 300 seconds and my API Gateway timeout is set to the default 29s.
Despite that, API Gateway is almost instantly timing out as indicated by the logs.
00:13:56 Sending request to lambda
00:13:56 Execution failed due to a timeout error

Any ideas on how to fix this would be greatly appreciated. I'm sure there has to be a simple reason that I've missed so far.

1개 답변
1

Nevermind, turns out the API Gateway timeout was actually lower than the timeout field showed, as I didn't redeploy the API after changing the timeout.

WWB
답변함 5년 전

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

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

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