AWS Lambda函数抛出读取超时。 (读取超时= 60)调用时

时间:2018-09-26 15:06:13

标签: amazon-web-services aws-lambda aws-serverless

我从AWS C9环境在AWS Lambda上创建了Lambda函数。该功能在本地运行良好,但是在部署之后,在远程运行会超时。

这是错误:

Error: 
HTTPSConnectionPool(host='lambda.us-east-2.amazonaws.com', port=443): Read timed out. (read timeout=60)

at convertStderrToError (https://d373lap04ubgnu.cloudfront.net/c9-2108b841e591-ide/build/configs/ide/@aws/cloud9/configs/ide/environment-default.js:9982:33)
at exports.EventEmitter.<anonymous> (https://d373lap04ubgnu.cloudfront.net/c9-2108b841e591-ide/build/configs/ide/@aws/cloud9/configs/ide/environment-default.js:9974:70)
at exports.EventEmitter.EventEmitter.emit (https://d373lap04ubgnu.cloudfront.net/c9-2108b841e591-ide/build/configs/ide/@aws/cloud9/configs/ide/environment-default.js:19:23)
at Consumer.onExit (https://d373lap04ubgnu.cloudfront.net/c9-2108b841e591-ide/build/configs/ide/@aws/cloud9/configs/ide/environment-default.js:48909:80)
at Consumer.<anonymous> (https://d373lap04ubgnu.cloudfront.net/c9-2108b841e591-ide/build/configs/ide/@aws/cloud9/configs/ide/environment-default.js:48698:4)
at Consumer.Agent._onMessage (https://d373lap04ubgnu.cloudfront.net/c9-2108b841e591-ide/build/configs/ide/@aws/cloud9/configs/ide/environment-default.js:48778:4)
at EngineIoTransport.EventEmitter.emit (https://d373lap04ubgnu.cloudfront.net/c9-2108b841e591-ide/build/configs/ide/@aws/cloud9/configs/ide/environment-default.js:48538:16)
at module.exports.onMessage (https://d373lap04ubgnu.cloudfront.net/c9-2108b841e591-ide/build/configs/ide/@aws/cloud9/configs/ide/environment-default.js:48838:6)
at module.exports.EventEmitter.emit (https://d373lap04ubgnu.cloudfront.net/c9-2108b841e591-ide/build/configs/ide/@aws/cloud9/configs/ide/environment-default.js:18:23)
at module.exports.ReliableSocket.onMessage (https://d373lap04ubgnu.cloudfront.net/c9-2108b841e591-ide/build/configs/ide/@aws/cloud9/configs/ide/environment-default.js:49026:76)

我可以看到问题不在我的代码中,因为该函数甚至没有被调用。有提示吗?

0 个答案:

没有答案