Closed largeDachshund closed 6 years ago
This log statement:
ApplicationInsights:Sender [ 'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',
{ [Error: socket hang up] code: 'ECONNRESET' } ]
Should indicate that the SDK successfully caught an error internally and shouldn't further throw to cause a 500 in your app. If you don't require applicationinsights
do you still get 500 errors?
EDIT: Can you also specify which version of the SDK you are on?
Thanks, Osvaldo. You're suspicions were right. I sourced the error to another API. thanks!
With this configuration:
var appInsights = require("applicationinsights"); appInsights.setup();// assuming ikey is in env var appInsights.start();
in my node app, I received a 500 error due to this:Sun Oct 14 2018 20:47:01 GMT+0000 (Coordinated Universal Time): Application has thrown an uncaught exception and is terminated:
Error: 30912:error:140740BF:SSL routines:SSL23_CLIENT_HELLO:no protocols available:openssl\ssl\s23_clnt.c:283:
ApplicationInsights:Sender [ 'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',
{ [Error: socket hang up] code: 'ECONNRESET' } ]
2018-10-14T20:48:31 No new trace in the past 1 min(s).