Skip to content

Commit 15f9e53

Browse files
authored
fix(service-error-classification): add check for clock skew based errors to retry (#1965)
* fix(service-error-classification): add check for clock skew based errors to retry * chore: changeset
1 parent ed851e7 commit 15f9e53

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/neat-ravens-clean.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smithy/service-error-classification": patch
3+
---
4+
5+
retry clock skew errors for freeze/thaw/drift situations

packages/service-error-classification/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export const isThrottlingError = (error: SdkError) =>
5757
export const isTransientError = (error: SdkError, depth = 0): boolean =>
5858
isRetryableByTrait(error) ||
5959
isClockSkewCorrectedError(error) ||
60+
(error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) ||
6061
TRANSIENT_ERROR_CODES.includes(error.name) ||
6162
NODEJS_TIMEOUT_ERROR_CODES.includes((error as { code?: string })?.code || "") ||
6263
NODEJS_NETWORK_ERROR_CODES.includes((error as { code?: string })?.code || "") ||

0 commit comments

Comments
 (0)