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 18f1a6a commit 3ffe6d1Copy full SHA for 3ffe6d1
packages/service-error-classification/src/index.ts
@@ -31,7 +31,7 @@ export const isThrottlingError = (error: SdkError) =>
31
* cause where the NodeHttpHandler does not decorate the Error with
32
* the name "TimeoutError" to be checked by the TRANSIENT_ERROR_CODES condition.
33
*/
34
-export const isTransientError = (error: SdkError, depth = 0) =>
+export const isTransientError = (error: SdkError, depth = 0): boolean =>
35
isClockSkewCorrectedError(error) ||
36
TRANSIENT_ERROR_CODES.includes(error.name) ||
37
NODEJS_TIMEOUT_ERROR_CODES.includes((error as { code?: string })?.code || "") ||
0 commit comments