We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e987e36 commit e06ff22Copy full SHA for e06ff22
nodes/Apify/resources/genericFunctions.ts
@@ -85,6 +85,9 @@ export async function apiRequest(
85
* because the error is probably caused by invalid URL (redirect 3xx) or invalid user input (4xx).
86
*/
87
function isStatusCodeRetryable(statusCode: number) {
88
+ if (Number.isNaN(statusCode))
89
+ return false;
90
+
91
const RATE_LIMIT_EXCEEDED_STATUS_CODE = 429;
92
const isRateLimitError = statusCode === RATE_LIMIT_EXCEEDED_STATUS_CODE;
93
const isInternalError = statusCode >= 500;
0 commit comments