应用程序洞察:无法验证节点js中的第一个证书

问题描述 投票:0回答:1

应用程序见解每隔几分钟就会继续抛出以下错误。

ApplicationInsights:无法连续5次发送Sender ['Ingestion endpoint'。可能会导致遥测丢失。最近的错误:',{错误:无法在ZoneDelegate.invokeTask(/usr/src/app/node_modules/zone.js/dist)验证TLSSocket上的第一个证书。\ u003canonymous \ u003e(_tls_wrap.js:1116:38) /zone-node.js:275:35)在TLSSocket.ZoneTask.invoke(/ usr)的Zone.runTask(/usr/src/app/node_modules/zone.js/dist/zone-node.js:151:47) /src/app/node_modules/zone.js/dist/zone-node.js:345:33)在TLSSocket的TLSSocket.emit(events.js:208:7)的emitNone(events.js:106:13)处。 _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();

我不是百分百确定是否有任何遥测丢失,但总是得到这些错误是令人讨厌的。请帮忙。

node.js azure azure-application-insights
1个回答
-1
投票

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

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

© www.soinside.com 2019 - 2024. All rights reserved.