我试图弄清楚为什么运行时出现大量套接字超时错误serverless deploy -v
-https://github.com/serverless/serverless
我启用了发生错误的 S3 存储桶上的日志记录,第一个 CloudFormation 文件似乎总是可以正常上传,但服务 .zip 80% 的时间都会失败。
Serverless: Stack create finished...
Serverless: Packaging service...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading service .zip file to S3 (3.75 MB)...
Serverless Error ---------------------------------------
Your socket connection to the server was not read from
or written to within the timeout period. Idle connections
will be closed.
失败的日志如下-
PUT /serverless/serverless-crud/dev/1488408196861-2017-03-01T22%3A43%3A16.861Z/serverless-crud.zip HTTP/1.1 400 RequestTimeout 360 3929245 20033 - - aws-sdk-nodejs/2.7.13 linux/v7.5.0
成功看起来像-
PUT /serverless/serverless-crud/dev/1488408364005-2017-03-01T22%3A46%3A04.005Z/serverless-crud.zip HTTP/1.1 200 - - 3929245 17199 79 - aws-sdk-nodejs/2.7.13 linux/v7.5.0
有没有什么地方可以让我找到这些值的相关内容?比如 360。
此外,关于如何修复/调试此超时错误有什么建议吗?