You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
request(ariUrl, function (err, response) {
if (err || !response || response.statusCode !== 200) {
Thank you!
The text was updated successfully, but these errors were encountered:
fbernhard
changed the title
Trying to connect to an unreachable host doesn't always through an error
Trying to connect to an unreachable host doesn't always throw an error
Jun 12, 2020
This code should also check for "EHOSTUNREACH":
node-ari-client/lib/client.js
Line 113 in 0933f88
if request throws an "EHOSTUNREACH" the system continues with the connection attempt which leads the library to "hang".
https://nodejs.org/api/os.html#os_signal_constants
Alternatively, maybe check for statusCode 200?
Thank you!
The text was updated successfully, but these errors were encountered: