AWS lambda function stops working after timed out error

后端 未结 6 1490
生来不讨喜
生来不讨喜 2021-02-05 00:41

I have a simple lambda function that asynchronously makes an API calls and then returns data. 99% of the time this works great. When ever the API takes longer then the lambda co

6条回答
  •  -上瘾入骨i
    2021-02-05 01:16

    well if you defined 3 seconds in your function configuration, this timeout will override the time inside your code, so make sure to increase the timeout from your lambda function configs and try again the wait() and it should work!

提交回复
热议问题