Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

The aws http client doesn't seem to be working very well with the S3 client on retry #243

Open
vivienschilis opened this issue Mar 19, 2015 · 0 comments

Comments

@vivienschilis
Copy link

It seems like the second time the request Body is read. it returns "" which creates the following error

--- FAIL: TestClient_retries (0.10 seconds)
client2_test.go:51: Put http:/foobar/foofile: http: Request.ContentLength=12 with Body length 0

I wrote a test for it:
https://gist.github.com/vivienschilis/f771b5cd9c0ac9093e04

Maybe you have an idea on how to fix it. Doing a ioutil.ReadAll during the roundtrip might not be very elegant.

Let me know if you need more input data.
Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant