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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ