简体   繁体   English

AWS Lambda 任务在 3.00 秒后超时

[英]AWS Lambda Task timed out after 3.00 seconds

I created a simple Node.js script to connect to a RDS instance but sadly it always returns with timeout error.我创建了一个简单的 Node.js 脚本来连接到 RDS 实例,但遗憾的是它总是返回超时错误。 It is strange because it works perfectly from my machine.这很奇怪,因为它在我的机器上运行完美。

The instance is public accessible and context.callbackWaitsForEmptyEventLoop = false;该实例可公开访问且 context.callbackWaitsForEmptyEventLoop = false;

have you got any idea?你知道吗?

Lambda has a property of time out. Lambda 具有超时属性。 Have you checked this configuration in the Lambda via console (Basic configuration) or in your deployment template file?您是否通过控制台(基本配置)或部署模板文件在 Lambda 中检查过此配置?

i have same error i fix with incress the timeout time我有同样的错误,我通过增加超时时间来解决

new aws UI新的 AWS 用户界面

lambda function -> configuration -> General configuration -> Edit Timeout

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将 aws lambda 与 redis 连接时,任务在 23.02 秒错误后超时 - while connecting aws lambda with redis getting Task timed out after 23.02 seconds error 如何在另一个lambda之后执行AWS lambda - How to execute AWS lambda after another lambda PostgreSQL 连接尝试超时错误的 AWS RDS - AWS RDS for PostgreSQL Connection attempt timed out error AWS Lambda function 调用 aws 服务超时 - AWS Lambda function timing out on calling aws service 如何找出为 AWS Lambda 预安装了哪些受信任的 CA? - How to find out what trusted CA's are preinstalled for AWS Lambda? 从 Dataproc 集群执行 spark 作业时,执行程序检测信号在 125009 毫秒后超时 - Executor heartbeat timed out after 125009 ms while executing spark jobs from Dataproc cluster AWS Lambda 函数抛出 ClassNotFoundException - LambdaHandler。 当前类路径:file:/var/task/ - AWS Lambda function throws ClassNotFoundException - LambdaHandler. Current classpath: file:/var/task/ AWS EventBridge 作为 Lambda 目的地 - AWS EventBridge as Lambda destination 使用 aws sam cli 构建和部署 lambda function 后,我在日志中看到 Client.network socket disconnected - After building and deploying lambda function with aws sam cli, I get Client network socket disconnected in logs 使用 Chaquopy 安装 TensorFlow 时出现“读取超时” - "Read timed out" when installing TensorFlow with Chaquopy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM