- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我使用 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/
我想构建一个 API 作为无服务器 AWS Lambda 函数,并使用 ClaudiaJS 作为框架。但是,当将 JSON 对象传递到 POST 路由时,我无法正确解析 request.body 的内
我正在尝试使用 claudia 构建一个 Facebook 机器人,遵循此 guide ,我被告知: 创建具有 IAM 完全访问权限、Lambda 完全访问权限和 API 网关管理员权限的 AWS 配
我正在运行 CircleCI 和 Claudia.js 将我的 Node.js 代码部署到 AWS Lambda。 这是我的 package.json (脚本部分): "scripts": {
我正在开发一个 Claudia.js 机器人,它可以通过 Slack、FB Messenger 和 Alexa 技能进行访问。据说在 claudia 中,你可以返回纯文本,框架会正确地将它返回给“前端
creating Lambda lambda.setupRequestListeners { RequestEntityTooLargeException: Request must be
我正在使用带有 Sequelize 的 Claudia-api-builder 并在从 API 返回响应时遇到问题 应用程序.js: const ApiBuilder = require('claud
我正在使用 claudia.js CLI 将函数和 Web API 部署到 AWS lambda 和 API 网关。我的项目文件结构如下: functions --function1 ---- nod
所以我用 express.js 创建了一个 restAPI 后端,并使用 claudia.js 将我的端点上传到 lambda 函数,一切都很顺利。端点按预期工作并返回正确的信息。我唯一的问题是,当我
我使用 claudia.js 构建了一个机器人 claudia-bot-builder在我今天早上尝试推送更新之前,一切都运行良好。现在脚本超时。 脚本 claudia create --region
无法导入模块“index”:aws 云监视日志中出现错误。使用 claudia 上传 lambda 工作正常,但 api 不起作用,并且云监视日志显示以下错误: Unable to import mo
我正在尝试为 options 设置 Access-Control-Allow-Methods header ,目前看来 claudia-api-builder不能像 GET 请求那样设置 http 选
我是一名优秀的程序员,十分优秀!