Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
if (error.connectionError) {
return true;
}
if (
hasMetadata(error) &&
error.$metadata.httpStatusCode &&
RETRYABLE_STATUS_CODES.has(error.$metadata.httpStatusCode)
) {
return true;
}
return (
isStillProcessingError(error) ||
isThrottlingError(error) ||
isClockSkewError(error)
);
};