Skip to content

Commit ea2712f

Browse files
committed
Retry on HTTP 522 Connection timed out
This is supposed to be CloudFlare specific 522 Connection timed out HTTP error code.
1 parent 4e7e684 commit ea2712f

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

dist/setup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129897,7 +129897,7 @@ class JavaBase {
129897129897
// Check if error is retryable (including aggregate errors)
129898129898
const isRetryable = (error instanceof tc.HTTPError &&
129899129899
error.httpStatusCode &&
129900-
[429, 502, 503, 504].includes(error.httpStatusCode)) ||
129900+
[429, 502, 503, 504, 522].includes(error.httpStatusCode)) ||
129901129901
retryableCodes.includes(error === null || error === void 0 ? void 0 : error.code) ||
129902129902
((error === null || error === void 0 ? void 0 : error.errors) &&
129903129903
Array.isArray(error.errors) &&

package-lock.json

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/distributions/base-installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export abstract class JavaBase {
8383
const isRetryable =
8484
(error instanceof tc.HTTPError &&
8585
error.httpStatusCode &&
86-
[429, 502, 503, 504].includes(error.httpStatusCode)) ||
86+
[429, 502, 503, 504, 522].includes(error.httpStatusCode)) ||
8787
retryableCodes.includes(error?.code) ||
8888
(error?.errors &&
8989
Array.isArray(error.errors) &&

0 commit comments

Comments
 (0)