Skip to content

DynamoDB client doesn't retry on 503 errors (like #4683)Β #6718

@aisamu

Description

@aisamu

Checkboxes for prior research

Describe the bug

We've been observing the same issue mentioned on #4683. (closed for lack of more information).

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/[email protected] (i.e. > 3.387.0)

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v20.18.1

Reproduction Steps

(equivalent to the previous issue)
We're using only simple calls to getItem and/or batchGetItem.

Observed Behavior

(also equivalent to the previous issue)
We get one exception every couple days complaining it can't parse <... as JSON

Logging $response per the instructions on the error message:

{
  "response": {
    "reason": "Service Unavailable",
    "headers": {
      "date": "Sun, 08 Dec 2024 05:32:56 GMT",
      "server": "Server",
      "content-length": "98",
      "x-amzn-requestid": "xxx",
      "connection": "keep-alive",
      "x-amz-crc32": "xxx"
    },
    "body": "<ServiceUnavailableException>\n  <Message>Request Expired</Message>\n</ServiceUnavailableException>\n",
    "statusCode": 503
  }
}

Expected Behavior

The call gets retried internally. ($metadata shows that there was only one attempt)

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.closing-soonThis issue will automatically close in 4 days unless further comments are made.p2This is a standard priority issueservice-apiThis issue is due to a problem in a service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions