Skip to content

aws.LogResponse does not seem to log all responses during errors #2841

Answered by lucix-aws
anishsana asked this question in Q&A
Discussion options

You must be logged in to vote

https://aws.github.io/aws-sdk-go-v2/docs/making-requests/#responses-with-ioreadcloser

Could the issue be specific to the GetObject API not retrying requests with connection reset errors?

In an operation like GetObject, where the entire HTTP response body is the userdata (the object, in this case), we just pass the underlying http.Response.Body to you. So you're probably getting connection reset in the context of actually Reading the response body yourself - the SDK isn't going to retry that, you're not inside an SDK operation call (there's no retry loop to begin with).

This is different from PutObject, wherein the SDK is taking object data from you and handling conveying it over the wir…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@anishsana
Comment options

@RanVaknin
Comment options

@anishsana
Comment options

@anishsana
Comment options

Comment options

You must be logged in to vote
1 reply
@anishsana
Comment options

Answer selected by RanVaknin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants