You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -171,14 +188,14 @@ export async function makeFetchCall(
171
188
}
172
189
173
190
if(isFinalAttempt){
174
-
logger?.error(
191
+
logger.error(
175
192
`${config.method}${endpoint} (x-request-id=${requestId}) failed with status ${response.status}${getDuration()}: ${(awaitresponse.text())||'<empty response body>'}`,
176
193
);
177
-
logger?.error(
194
+
logger.error(
178
195
`${config.method}${endpoint} (x-request-id=${requestId}) retry limit exceeded after ${attempt} attempts.`,
179
196
);
180
197
}else{
181
-
logger?.debug?.(
198
+
logger.debug(
182
199
`${config.method}${endpoint} (x-request-id=${requestId}) failed with status ${response.status}${getDuration()}: ${(awaitresponse.text())||'<empty response body>'}`,
183
200
);
184
201
}
@@ -189,7 +206,7 @@ export async function makeFetchCall(
189
206
190
207
if(response.status>=400&&response.status<500){
191
208
if(retries>0){
192
-
logger?.error(`Abort retry because of status code ${response.status}.`);
209
+
logger.error(`Abort retry because of status code ${response.status}.`);
193
210
}
194
211
bail(error);
195
212
}
@@ -247,12 +264,4 @@ function formatTimestamp(timestamp: number): string {
247
264
returnparts.join(':');
248
265
}
249
266
250
-
interfaceAggregateErrorextendsError{
251
-
errors: Error[];
252
-
}
253
-
254
-
functionisAggregateError(error: unknown): error is AggregateError{
0 commit comments