Closed tdimdimich closed 2 years ago
When the server is unavailable (no internet connection for example) the logEvent throws an unhandled rejection
Do not throws an unhandled rejection
Throws an unhandled rejection
Catch node errors in line
serverUrl
logEvent
unhandledRejection Error: getaddrinfo ENOTFOUND api2.amplitude.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:69:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'api2.amplitude.com' }
When the server is unavailable (no internet connection for example) the logEvent throws an unhandled rejection
Expected Behavior
Do not throws an unhandled rejection
Current Behavior
Throws an unhandled rejection
Possible Solution
Catch node errors in line
Steps to Reproduce
serverUrl
config to any non-existent addresslogEvent
Environment
Example error