Skip to content

Commit

Permalink
fix: extend statuscode check to 502 to retry the request
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimanyubabbar committed Jan 28, 2025
1 parent 95831f1 commit 079e623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/openfaas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ const executeFaasFunction = async (
throw new RetryRequestError(`Rate limit exceeded for ${name}`);
}

if (error.statusCode === 500 || error.statusCode === 503) {
if (error.statusCode === 500 || error.statusCode === 503 || error.statusCode === 502) {
throw new RetryRequestError(error.message);
}

Expand Down

0 comments on commit 079e623

Please sign in to comment.