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.

WWB
已提問 5 年前檢視次數 631 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南