-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DynamoDB] RequestError: send request failed #5037
Comments
Hi @MikaelSmith,
The error you're seeing originates directly from the networking layer. This occurs before the request has made a full round trip to and from the DynamoDB service, disrupting the process before a response is received. Instead, a common strategy of http clients is to retry on transient error (connection reset, connection timeout etc). The Go SDK is already equipped to deal with this specific error in a form of retry. connection reset error. Since this is not reproducible, caused by networking stack, and we have a mitigation strategy (retry) this is not actionable by the Go SDK team. You can enable logging to make sure that retries are taking effect. If you have any other questions please let us know. Thanks, |
This issue has not received a response in 1 week. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled. |
Refreshing the issue as I see the same I checked the function referenced by @RanVaknin and it seems that this specific error string ( SDK version usedv1.42.25 Environment details (Version of Go (go version)? OS name and version, etc.)Go 1.21 |
@wojtekwanczyk Been seeing this issue as well. While it's not particularly well-documented in that commit, a aws-sdk-go-v2 supports modifying the retryer per-operation: getItemOutput, err := DynamoDB.GetItem(ctx, input, func(o *dynamodb.Options) {
o.Retryer = ...
}) Haven't found a way to do this yet in v1 - @RanVaknin can you speak to whether or not that's possible? |
Describe the bug
On random occasions we receive
connection reset by peer
when querying Dynamo database.The error message "connection reset by peer" typically occurs in network-related communication, and it often indicates that the connection between two systems has been unexpectedly closed by the remote end, which, in this case, is the DynamoDB service.
Expected Behavior
Expected to not happen or at least be handled by
dynamodb.ErrCodeInternalServerError
.If already handled by some error, please document in which one.
Current Behavior
Reproduction Steps
Cannot reproduce, appears to be random on all types of queries.
Example
output, err := e.client.QueryWithContext(ctx, input)
Possible Solution
No response
Additional Information/Context
No response
SDK version used
v1.45.11
Environment details (Version of Go (
go version
)? OS name and version, etc.)Go 1.20 and Go 1.21
The text was updated successfully, but these errors were encountered: