From 241159425a3b42e367b48a7a316b2bcd8312ffde Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Thu, 12 Dec 2024 21:13:37 +0000 Subject: [PATCH] fix: customBackOff fix --- lib/core/concurrency-queue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/concurrency-queue.js b/lib/core/concurrency-queue.js index 54acb14f..e27c5fd1 100644 --- a/lib/core/concurrency-queue.js +++ b/lib/core/concurrency-queue.js @@ -205,7 +205,7 @@ export function ConcurrencyQueue ({ axios, config }) { } else { return Promise.reject(responseHandler(error)) } - } else if (response.status === 429 || (response.status === 401 && this.config.refreshToken)) { + } else if ((response.status === 401 && this.config.refreshToken)) { retryErrorType = `Error with status: ${response.status}` networkError++