Skip to content

Commit

Permalink
Merge pull request #1891 from aeternity/feature/dont-retry-500
Browse files Browse the repository at this point in the history
fix(node): don't retry 500 code responses
  • Loading branch information
davidyuk committed Sep 3, 2023
2 parents b1f4883 + 696e7db commit 24b179c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/autorest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 24b179c

Please sign in to comment.