diff --git a/lib/client.js b/lib/client.js index 91979ec..4a92be0 100644 --- a/lib/client.js +++ b/lib/client.js @@ -340,7 +340,7 @@ class HttpTransportClient { } function isCriticalError(err) { - if (err && err.statusCode < 500) { + if (err && (err.statusCode < 500 || err.isBrokenCircuitError)) { return false; } return true;