diff --git a/src/utils/autorest.ts b/src/utils/autorest.ts index 2d45829029..e65fd90a49 100644 --- a/src/utils/autorest.ts +++ b/src/utils/autorest.ts @@ -119,7 +119,7 @@ export const genRetryOnFailurePolicy = ( policy: { name: 'retry-on-failure', async sendRequest(request, next) { - const statusesToNotRetry = [200, 400, 403]; + const statusesToNotRetry = [200, 400, 403, 500]; const intervals = new Array(retryCount).fill(0) .map((_, idx) => ((idx + 1) / retryCount) ** 2);