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); } } },