amazon web services - AWS REST apigateway throws 502 even though integration timeout is set to 59000 ms - Stack Overflow

I have an apigateway -> lambda setup. I have raised a quota increase for api gateway integration tim

I have an apigateway -> lambda setup. I have raised a quota increase for api gateway integration timeout and the new limit is set to 59000ms. The lambda has a timeout of 10 mins and keeps running in background even after api gw fails with 502.

Even then I see api gw throwing 502 gateway timeout errors when requests reach (~30 secs). Is there additional I need to do to increase this limit ?

I have an apigateway -> lambda setup. I have raised a quota increase for api gateway integration timeout and the new limit is set to 59000ms. The lambda has a timeout of 10 mins and keeps running in background even after api gw fails with 502.

Even then I see api gw throwing 502 gateway timeout errors when requests reach (~30 secs). Is there additional I need to do to increase this limit ?

Share Improve this question edited Mar 10 at 15:19 Naxi asked Mar 10 at 14:50 NaxiNaxi 2,1247 gold badges47 silver badges100 bronze badges 4
  • 1 Whenever dealing with api gateways and changes seemingly not having an effect: did you ensure the new changes are "deployed" to the right stage? – luk2302 Commented Mar 10 at 14:58
  • 1 yes. That was the first thing i made sure I did. – Naxi Commented Mar 10 at 15:02
  • Is there a load balancer involved. If so, you could be getting a response form the alb. – Ross Bush Commented Mar 10 at 15:07
  • no ALB. Just the API Gw and lambda. – Naxi Commented Mar 10 at 15:08
Add a comment  | 

1 Answer 1

Reset to default 1

Apparently, increasing timeout on Api gateway is just applicable to regional and private APIs. Mine was EDGE hence even though on api level timeout was 59 secs , it was still timing out after 30 secs.

Also, if you have a custom domain name mapped to this api, make sure that is also regional/private. Mine was "edge".

So now, i can call api using its default url and i see it waits for more than 30 secs whereas if i use custom domain name (which is edge), it again fails at 30 secs.

hope it helps someone !

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744840057a4596502.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信