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

View File

@@ -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) &&