doushi9780 2019-07-09 08:46
浏览 92

使用AWS SAM在本地运行时,AWS Lambda函数超时

My Lambda function times out when I try to run it locally using AWS SAM. Strange thing is that no logs are corded in Visual Studio Console. It is like handler is not being invoked.

Here is output I am getting:

sam local invoke --event payload.json "Thumbnail"
2019-07-09 10:29:15 Found credentials in shared credentials file: ~/.aws/credentials
2019-07-09 10:29:15 Invoking bin/thumbnail (go1.x)
2019-07-09 10:29:15 Decompressing /home/stefan/go/src/pipeline/bin/thumbnail.zip
2019-07-09 10:29:16 arn:aws:lambda:us-east-1:757767972066:layer:ffmpeg:1 is already cached. Skipping download
2019-07-09 10:29:16 Requested to skip pulling images ...

2019-07-09 10:29:16 Mounting /tmp/tmpd04si4a7 as /var/task:ro,delegated inside runtime container
2019/07/09 08:29:16 Error has occurred while trying to 
START RequestId: 98045d33-fce4-1450-9647-256946512a1f Version: $LATEST
END RequestId: 98045d33-fce4-1450-9647-256946512a1f
REPORT RequestId: 98045d33-fce4-1450-9647-256946512a1f  Duration: 300000.00 ms  Billed Duration: 300000 ms      Memory Size: 128 MB     Max Memory Used: 0 MB
{
  "errorMessage": "2019-07-09T08:34:16.927Z 98045d33-fce4-1450-9647-256946512a1f Task timed out after 300.00 seconds"
}
2019-07-09 10:34:16 Function 'Thumbnail' timed out after 300 seconds

How can I find out what is causing this?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何用python向钉钉机器人发送可以放大的图片?
    • ¥15 vue3加ant-design-vue无法渲染出页面
    • ¥15 matlab(相关搜索:紧聚焦)
    • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
    • ¥15 路易威登官网 里边的参数逆向
    • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
    • ¥50 需求一个up主付费课程
    • ¥20 模型在y分布之外的数据上预测能力不好如何解决
    • ¥15 processing提取音乐节奏
    • ¥15 gg加速器加速游戏时,提示不是x86架构