fix: temp fix to prevent 503 retries

This commit is contained in:
Calum H. 2025-06-04 23:38:56 +01:00
parent be37f077d3
commit fe0088e9b3

View File

@ -207,7 +207,7 @@ async function PyroFetch<T>(
}
const statusCode = error.response?.status;
const isRetryable = statusCode ? [408, 429, 500, 502, 503, 504].includes(statusCode) : true;
const isRetryable = statusCode ? [408, 429, 500, 502, 504].includes(statusCode) : true;
if (!isRetryable || attempts >= maxAttempts) {
throw new ServersError(error.message, statusCode, error, module, v1Error);