mirror of
https://github.com/actions/setup-java.git
synced 2026-10-04 09:14:34 +03: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:
1 parent
f2beeb24e1
commit
5d7b214633
3 files changed
+2
-9
No files matched your search
@@ -83,7 +83,7 @@ export abstract class JavaBase {
|
||||
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?.code) ||
|
||||
(error?.errors &&
|
||||
Array.isArray(error.errors) &&
|
||||
|
||||
Reference in new issue
Block a user