首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Serverless:发生可恢复错误(无法验证第一个证书),

Serverless:发生可恢复错误(无法验证第一个证书),
EN

Stack Overflow用户
提问于 2019-12-03 17:58:35
回答 1查看 2.3K关注 0票数 0

你好,我再次尝试部署一个简单的服务,这个服务运行良好(hello world)

代码语言:javascript
复制
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,谢谢

代码语言:javascript
复制
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``
EN

回答 1

Stack Overflow用户

发布于 2019-12-03 18:08:30

我猜你是躲在某种公司防火墙后面吧?如果是这样的话,这里有一些记录在案的选项:https://github.com/serverless/serverless/issues/3256

首先,我会尝试NODE_TLS_REJECT_UNAUTHORIZED=0 sls deploy。如果有效,您可以尝试一些我链接到的永久解决方案。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59162872

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档