你好,我再次尝试部署一个简单的服务,这个服务运行良好(hello world)。
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,谢谢
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``发布于 2019-12-03 18:08:30
我猜你是躲在某种公司防火墙后面吧?如果是这样的话,这里有一些记录在案的选项:https://github.com/serverless/serverless/issues/3256
首先,我会尝试NODE_TLS_REJECT_UNAUTHORIZED=0 sls deploy。如果有效,您可以尝试一些我链接到的永久解决方案。
https://stackoverflow.com/questions/59162872
复制相似问题