开发者社区 > 物联网 > 正文

VS-CODE 在NODE.JS 环境运行AMP login或 amp dl 均报错 无法远程热更新

(node:13692) UnhandledPromiseRejectionWarning: Error: certificate has expired at TLSSocket.onConnectSecure (_tls_wrap.js:1285:34) at TLSSocket.emit (events.js:196:13) at TLSSocket._finishInit (_tls_wrap.js:758:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:590:12) (node:13692) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:13692) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

展开
收起
游客yzjojptqbzpu6 2022-12-07 10:01:34 796 1
1 条回答
写回答
取消 提交回答
  • 发表文章、提出问题、分享经验、结交志同道合的朋友

    你好,这个错误表示使用的TLS证书已过期,因此无法进行远程热更新。

    需要更新证书:

    • 获取有效的TLS证书:从证书颁发机构(CA)获取有效的TLS证书。

    • 替换证书:将新证书替换掉过期的证书。

    2023-03-30 20:14:58
    赞同 展开评论 打赏

物联网领域前沿技术分享与交流

热门讨论

热门文章

相关电子书

更多
探究 Node.js 的服务端之路 立即下载
个推微服务实践 基于OpenResty 和Node.js 立即下载
沪江基于Node.js大规模应用实践 立即下载