Skip to content

Commit 62de876

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 62de876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)