Skip to content

Commit

Permalink
Fix: retry failure in storage retryDecider (#13977)
Browse files Browse the repository at this point in the history
fix retry failure
  • Loading branch information
ashika112 authored Oct 31, 2024
1 parent a60e770 commit 4892fe9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export const createRetryDecider =
): Promise<RetryDeciderOutput> => {
const defaultRetryDecider = getRetryDecider(errorParser);
const defaultRetryDecision = await defaultRetryDecider(response, error);
if (!response || response.statusCode < 300) {
return { retryable: false };
if (!response) {
return { retryable: defaultRetryDecision.retryable };
}
const parsedError = await errorParser(response);
const errorCode = parsedError?.name;
Expand Down

0 comments on commit 4892fe9

Please sign in to comment.