gpt4 book ai didi

node.js - Claudia.js NetworkingError 创建 Lambda 函数 - 120000 毫秒后超时

转载 作者:搜寻专家 更新时间:2023-11-01 00:21:21 25 4
gpt4 key购买 nike

我使用 claudia.js 构建了一个机器人 claudia-bot-builder在我今天早上尝试推送更新之前,一切都运行良好。现在脚本超时。

脚本

claudia create --region ap-southeast-2 --api-module index --profile xero-messenger-bot

错误

creating Lambda lambda.createFunction   FunctionName=my-bot
{TimeoutError: Connection timed out after 120000ms
at ClientRequest.<anonymous>
(/usr/local/lib/node_modules/claudia/node_modules/aws-sdk/lib/http/node.js:83:34)
at Object.onceWrapper (events.js:291:19)
at emitNone (events.js:86:13)
at ClientRequest.emit (events.js:186:7)
at TLSSocket.emitTimeout (_http_client.js:679:10)
at Object.onceWrapper (events.js:291:19)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:186:7)
at TLSSocket.Socket._onTimeout (net.js:342:8)
at ontimeout (timers.js:365:14)
message: 'Connection timed out after 120000ms',
code: 'NetworkingError',
time: 2017-04-20T05:48:18.230Z,
region: 'ap-southeast-2',
hostname: 'lambda.ap-southeast-2.amazonaws.com',
retryable: true
}

我尝试了几个不同的区域(ap-southeast-1、us-east-2 等),但它们似乎都抛出相同的错误。

我认为这是我的代码,但同样的脚本昨天还在运行,所以我不确定为什么今天不行。

有什么想法可以在哪里查看更多信息吗?

最佳答案

经过太多搜索后,我在 Gitter 的 Claudia's 旁停留了. @stojanovic 建议我应该使用 --use-s3-bucket 标志。

claudia create --handler lambda.handler --use-s3-bucket your-bucket-name --deploy-proxy-api --region us-east-1

关于node.js - Claudia.js NetworkingError 创建 Lambda 函数 - 120000 毫秒后超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43511426/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com