Node.js 无服务器:发生可恢复错误(无法验证第一个证书),
您好,我正在尝试再次部署一个运行良好的简单服务(Hello world) 但它突然开始出错** **我试图将NODE_TLS_REJECT_UNAUTHORIZED设置为0,但仍有错误 您能帮我一下吗,刚刚开始学习如何使用AWS LAMBDA,谢谢您Node.js 无服务器:发生可恢复错误(无法验证第一个证书),,node.js,aws-lambda,serverless-framework,serverless,aws-serverless,Node.js,Aws Lambda,Serverless Framework,Serverless,Aws Serverless,您好,我正在尝试再次部署一个运行良好的简单服务(Hello world) 但它突然开始出错** **我试图将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 firs
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``
我想你是在某种公司防火墙后面?如果是,这里有一些记录在案的选项:
首先,我会尝试
节点\u TLS\u拒绝\u UNAUTHORIZED=0 sls部署
。如果可行,您可以尝试我链接的一些永久性解决方案。您的无服务器版本是什么?我的nodejs是Windows….C:\Users\userssssss\MiProgTest1>NODE\u TLS\u REJECT\u UNAUTHORIZED=0 sls deploy“NODE\u TLS\u REJECT\u UNAUTHORIZED”不被识别为内部或外部命令,可操作的程序或批处理文件。已将其添加到环境窗口中。。。但是仍然存在以下错误:C:\Users\Usersss\hola mundo>sls deploy(节点:20248)警告:将node_TLS\u REJECT_UNAUTHORIZED环境变量设置为“0”会通过禁用证书验证使TLS连接和HTTPS请求不安全。无服务器:打包服务。。。无服务器:排除开发依赖项。。。无服务器:发生可恢复错误(无法验证第一个证书),休眠约6秒。尝试4个无服务器中的1个:发生可恢复错误(无法验证第一个证书),
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``