loggly / node-loggly-bulk

A client implementation for Loggly in node.js
https://www.loggly.com/docs/node-js-logs/
Other
20 stars 19 forks source link

Uncaught ECONNREFUSED connection error #48

Open omusil24 opened 3 years ago

omusil24 commented 3 years ago

Error

Got this error a few times now which crashed my server:

uncaught exception Error: connect ECONNREFUSED 52.21.83.61:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1145:16) {
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '52.21.83.61',
  port: 443
}

####
...
# same error with IP 75.101.233.97

Found out that the IPs are both of the logs-01.loggly.com server which is used for uploading logs. Obviously some kind of error handling seems to be missing here.

Versions

Node.js: 12.19.1 node-loggly-bulk: 2.2.4

VaclavObornik commented 3 years ago

I can confirm the issue, we are getting "getaddrinfo EAI_AGAIN logs-01.loggly.com" error sometimes and it crashes the app because of error handling lack

whtswrng commented 3 years ago

Thank you for reporting this issue. We are now tracking this issue internally as LOG-12016.