diff --git a/dist/setup/index.js b/dist/setup/index.js index b06945800..fc330ea44 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -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) && diff --git a/package-lock.json b/package-lock.json index 6fa75e48a..6d80dba77 100644 --- a/package-lock.json +++ b/package-lock.json @@ -366,7 +366,6 @@ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.3.tgz", "integrity": "sha512-Jg+msLuNuCJDyBvFv5+OKOUjWMZgd85bKjbICd3zWrKAo+bJ49HJufi7CQE0q0uR8NGyO6xkCACScNqyjHSZew==", "dev": true, - "peer": true, "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.22.13", @@ -1759,7 +1758,6 @@ "integrity": "sha512-B7RIQiTsCBBmY+yW4+ILd6mF5h1FUwJsVvpqkrgpszYifetQ2Ke+Z4u6aZh0CblkUGIdR59iYVyXqqZGkZ3aBw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.43.0", "@typescript-eslint/types": "8.43.0", @@ -2005,7 +2003,6 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -2281,7 +2278,6 @@ "url": "https://github.com/sponsors/ai" } ], - "peer": true, "dependencies": { "caniuse-lite": "^1.0.30001541", "electron-to-chromium": "^1.4.535", @@ -2737,7 +2733,6 @@ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", "dev": true, - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -3734,7 +3729,6 @@ "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, - "peer": true, "dependencies": { "@jest/core": "^29.7.0", "@jest/types": "^29.6.3", @@ -5485,7 +5479,6 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true, - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/src/distributions/base-installer.ts b/src/distributions/base-installer.ts index 03b4759d3..0fc4f0343 100644 --- a/src/distributions/base-installer.ts +++ b/src/distributions/base-installer.ts @@ -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) &&