AWS Lambda function timing out

后端 未结 2 1539
夕颜
夕颜 2021-01-21 04:13

In my local mocha tests the following handler function works just fine. However, when I upload to AWS (using Serverless framework) it times out (unless you don\'t provide a

2条回答
  •  独厮守ぢ
    2021-01-21 04:46

    Add the following as the first line of your handler function:

    context.callbackWaitsForEmptyEventLoop = false
    

提交回复
热议问题