From 2d91c2313f0f38827edb9c142eef42687e77588f Mon Sep 17 00:00:00 2001 From: chris stevens Date: Fri, 15 Nov 2024 12:19:11 +0000 Subject: [PATCH] feat: circuit broken errors no longer retried --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;