【问题标题】:Application Insights : Unable to verify the first certificate in node jsApplication Insights:无法验证节点 js 中的第一个证书
【发布时间】:2019-08-11 08:21:35
【问题描述】:

应用程序洞察每隔几分钟就会不断抛出以下错误。

ApplicationInsights:Sender [ '摄取端点连续 5 次无法到达。可能会导致遥测丢失。最近的错误:', { 错误:无法验证第一个证书 在 TLSSocket.\u003canonymous\u003e (_tls_wrap.js:1116:38) 在 ZoneDelegate.invokeTask (/usr/src/app/node_modules/zone.js/dist/zone-node.js:275:35) 在 Zone.runTask (/usr/src/app/node_modules/zone.js/dist/zone-node.js:151:47) 在 TLSSocket.ZoneTask.invoke (/usr/src/app/node_modules/zone.js/dist/zone-node.js:345:33) 在 emitNone (events.js:106:13) 在 TLSSocket.emit (events.js:208:7) 在 TLSSocket._finishInit (_tls_wrap.js:643:8) 在 TLSWrap.ssl.onhandshakedone (_tls_wrap.js:473:38) 代码:'UNABLE_TO_VERIFY_LEAF_SIGNATURE'}]

我查看了GITHUB DISCUSSION 的讨论并尝试了一些建议的解决方案,但没有奏效。

这是我用来连接到应用程序洞察力的代码。

let appInsights = require('applicationinsights');
appInsights.setup(config.APPINSIGHTS_KEY.trim())
  .setAutoDependencyCorrelation(true)
  .setAutoCollectRequests(true)
  .setAutoCollectPerformance(true)
  .setAutoCollectExceptions(true)
  .setAutoCollectDependencies(true)
  .setAutoCollectConsole(true)
  .setUseDiskRetryCaching(true)
  .start();

我不能 100% 确定是否有任何遥测丢失,但总是遇到这些错误很烦人。请帮忙。

【问题讨论】:

    标签: node.js azure azure-application-insights


    【解决方案1】:

    我已经更新了 github 讨论帖。摄取方面的修复工作正在进行中。

    https://github.com/Microsoft/ApplicationInsights-node.js/issues/180#issuecomment-475699485

    【讨论】:

    • 嗨,欢迎来到 Stack Overflow。请编辑问题,以便您的答案包含在文本中。 SO 是一个问答数据库,重要的是重要信息在这里,而不是其他地方,因为它可能会随着时间的推移而消失(并且搜索引擎无法有效地使用它来检索这个问题)。谢谢。
    猜你喜欢
    • 2021-09-03
    • 2021-06-15
    • 2022-07-27
    • 1970-01-01
    • 2017-04-28
    • 2021-10-20
    • 2021-01-02
    • 2020-02-17
    • 2021-03-26
    相关资源
    最近更新 更多