您好,我正在尝试再次部署运行良好的简单服务(您好,世界)
C:\Users\userssss\hola-mundo>sls invoke -f hello -s dev
{
"statusCode": 200,
"body": "{\n \"message\": \"Go Serverless v1.0! Your function executed successfully!\",\n \"input\": {}\n}"
}
但是突然开始出现错误。 ** **我尝试设置NODE_TLS_REJECT_UNAUTHORIZED = 0,但仍然出错 请帮助我,刚开始学习如何使用AWS LAMBDA,谢谢
C:\Users\userssss\hola-mundo>sls invoke -f hello -s dev
Serverless: Recoverable error occurred (unable to verify the first certificate), sleeping for 5 seconds. Try 1 of 4
Serverless: Recoverable error occurred (unable to verify the first certificate), sleeping for 5 seconds. Try 2 of 4
Serverless: Recoverable error occurred (unable to verify the first certificate), sleeping for 5 seconds. Try 3 of 4
Serverless: Recoverable error occurred (unable to verify the first certificate), sleeping for 5 seconds. Try 4 of 4
Serverless Error ---------------------------------------
unable to verify the first certificate
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: win32
Node Version: 12.13.1
Framework Version: 1.58.0
Plugin Version: 3.2.5
SDK Version: 2.2.1
Components Core Version: 1.1.2
Components CLI Version: 1.4.0
C:\Users\userssss\hola-mundo>sls deploy
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Recoverable error occurred (unable to verify the first certificate), sleeping for 5 seconds. Try 1 of 4
Serverless: Recoverable error occurred (unable to verify the first certificate), sleeping for 5 seconds. Try 2 of 4
Serverless: Recoverable error occurred (unable to verify the first certificate), sleeping for 5 seconds. Try 3 of 4
Serverless: Recoverable error occurred (unable to verify the first certificate), sleeping for 5 seconds. Try 4 of 4
Serverless Error ---------------------------------------
unable to verify the first certificate
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: win32
Node Version: 12.13.1
Framework Version: 1.58.0
Plugin Version: 3.2.5
SDK Version: 2.2.1
Components Core Version: 1.1.2
Components CLI Version: 1.4.0``
答案 0 :(得分:0)
我假设您在某种公司防火墙后面?如果是这样,这里有一些文档记录的选项:https://github.com/serverless/serverless/issues/3256
首先,我会尝试NODE_TLS_REJECT_UNAUTHORIZED=0 sls deploy
。如果可行,您可以尝试我链接到的一些永久性解决方案。