From cabeb3274f7965218360f9d2d0690399ed408afc Mon Sep 17 00:00:00 2001 From: Siddharth Srivastava Date: Mon, 13 Jul 2026 20:31:10 +0000 Subject: [PATCH 1/3] chore(retry): update CLOCK_SKEW_ERROR_CODES --- .../retry/service-error-classification/constants.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/submodules/retry/service-error-classification/constants.ts b/packages/core/src/submodules/retry/service-error-classification/constants.ts index 5aecfce3624..b72c2a43c90 100644 --- a/packages/core/src/submodules/retry/service-error-classification/constants.ts +++ b/packages/core/src/submodules/retry/service-error-classification/constants.ts @@ -4,12 +4,13 @@ * * These errors are retryable, assuming the SDK has enabled clock skew * correction. + * + * @see https://smithy.io/2.0/aws/aws-auth.html */ export const CLOCK_SKEW_ERROR_CODES = [ + "AccessDeniedException", "AuthFailure", "InvalidSignatureException", - "RequestExpired", - "RequestInTheFuture", "RequestTimeTooSkewed", "SignatureDoesNotMatch", ]; From dbf63794360a2cf694a68c5d53513a8756a3a35e Mon Sep 17 00:00:00 2001 From: Siddharth Srivastava Date: Mon, 13 Jul 2026 20:34:22 +0000 Subject: [PATCH 2/3] chore: changeset --- .changeset/selfish-cheetahs-guess.md | 5 +++++ .../retry/service-error-classification/constants.ts | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changeset/selfish-cheetahs-guess.md diff --git a/.changeset/selfish-cheetahs-guess.md b/.changeset/selfish-cheetahs-guess.md new file mode 100644 index 00000000000..5a0bafa865f --- /dev/null +++ b/.changeset/selfish-cheetahs-guess.md @@ -0,0 +1,5 @@ +--- +"@smithy/core": minor +--- + +updating errors list for clock skew errors (retryable) diff --git a/packages/core/src/submodules/retry/service-error-classification/constants.ts b/packages/core/src/submodules/retry/service-error-classification/constants.ts index b72c2a43c90..5eaded2999a 100644 --- a/packages/core/src/submodules/retry/service-error-classification/constants.ts +++ b/packages/core/src/submodules/retry/service-error-classification/constants.ts @@ -5,7 +5,6 @@ * These errors are retryable, assuming the SDK has enabled clock skew * correction. * - * @see https://smithy.io/2.0/aws/aws-auth.html */ export const CLOCK_SKEW_ERROR_CODES = [ "AccessDeniedException", From 8d3742394ef6b0a5f95d6dd7a17254edd4660fa8 Mon Sep 17 00:00:00 2001 From: Siddharth Srivastava Date: Tue, 21 Jul 2026 18:49:10 +0000 Subject: [PATCH 3/3] chore(retry): re-add RequestExpired and RequestInTheFuture to CLOCK_SKEW_ERROR_CODES --- .../submodules/retry/service-error-classification/constants.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/submodules/retry/service-error-classification/constants.ts b/packages/core/src/submodules/retry/service-error-classification/constants.ts index 5eaded2999a..aa9167a7c9c 100644 --- a/packages/core/src/submodules/retry/service-error-classification/constants.ts +++ b/packages/core/src/submodules/retry/service-error-classification/constants.ts @@ -10,6 +10,8 @@ export const CLOCK_SKEW_ERROR_CODES = [ "AccessDeniedException", "AuthFailure", "InvalidSignatureException", + "RequestExpired", + "RequestInTheFuture", "RequestTimeTooSkewed", "SignatureDoesNotMatch", ];