From 03b192c08150b6fe45558dba7d129570ac33fb6e Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Sat, 9 Mar 2024 15:55:50 +0100 Subject: [PATCH] Formatting of res.error --- packages/api/src/utils/client/httpClient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/api/src/utils/client/httpClient.ts b/packages/api/src/utils/client/httpClient.ts index 813aebc85a64..7c2f1a956456 100644 --- a/packages/api/src/utils/client/httpClient.ts +++ b/packages/api/src/utils/client/httpClient.ts @@ -162,7 +162,8 @@ export class HttpClient implements IHttpClient { if (++errorCount >= requestCount) { resolve(res); } else { - this.logger?.debug("Request error, retrying", {routeId, baseUrl}, (await res.error()) as Error); + const err = await res.error(); + this.logger?.debug("Request error, retrying", {routeId, baseUrl}, err as Error); } } },