5
0
mirror of https://gitea.com/actions/setup-java.git synced 2025-12-25 11:00:59 +00:00

Retry on HTTP 522 Connection timed out (#964)

This is supposed to be CloudFlare specific 522 Connection timed out HTTP
error code.
This commit is contained in:
Piotr Findeisen
2025-12-23 23:49:17 +01:00
committed by GitHub
parent f2beeb24e1
commit 5d7b214633
3 changed files with 2 additions and 9 deletions

2
dist/setup/index.js vendored
View File

@@ -129897,7 +129897,7 @@ class JavaBase {
// Check if error is retryable (including aggregate errors)
const isRetryable = (error instanceof tc.HTTPError &&
error.httpStatusCode &&
[429, 502, 503, 504].includes(error.httpStatusCode)) ||
[429, 502, 503, 504, 522].includes(error.httpStatusCode)) ||
retryableCodes.includes(error === null || error === void 0 ? void 0 : error.code) ||
((error === null || error === void 0 ? void 0 : error.errors) &&
Array.isArray(error.errors) &&