且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从节点MySQL连接到Amazon RDS(MySQL)时出错

更新时间:2023-01-21 17:22:29

我已修复它.问题在于Lambda函数配置中的超时设置.它设置为3秒,但是我的脚本需要10秒钟以上的时间才能执行.这就是我收到ETIMEDOUT错误的原因.我将设置更改为30秒.现在没有问题,一切正常.

I fixed it. The issue was with the timeout setting in Lambda function configuration. It was set to 3 sec, but my script needed more than 10 seconds to execute. That's the reason I got the ETIMEDOUT error. I changed the setting to 30 seconds. Now no issues, everything works fine.