From f6a167aea3cf652237447ce4f573561ab0d387bd Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Mon, 4 Mar 2024 22:03:00 +0000 Subject: [PATCH] fix: resolved undefined stack in error issue --- lib/core/concurrency-queue.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/concurrency-queue.js b/lib/core/concurrency-queue.js index 321383af..54acb14f 100644 --- a/lib/core/concurrency-queue.js +++ b/lib/core/concurrency-queue.js @@ -155,7 +155,8 @@ export function ConcurrencyQueue ({ axios, config }) { code: 'Unauthorized', message: 'Unable to refresh token', name: 'Token Error', - config: queueItem.request + config: queueItem.request, + stack: (error instanceof Error) ? error.stack : null, }) }) this.queue = []