{"action":"closed","issue":{"url":"https://api.github.com/repos/pfig/net-amazon-s3/issues/35","labels_url":"https://api.github.com/repos/pfig/net-amazon-s3/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/pfig/net-amazon-s3/issues/35/comments","events_url":"https://api.github.com/repos/pfig/net-amazon-s3/issues/35/events","html_url":"https://github.com/pfig/net-amazon-s3/issues/35","id":30239094,"number":35,"title":"content iterator not reset before retry","user":{"login":"jdv","id":47612,"avatar_url":"https://avatars.githubusercontent.com/u/47612?v=3","gravatar_id":"","url":"https://api.github.com/users/jdv","html_url":"https://github.com/jdv","followers_url":"https://api.github.com/users/jdv/followers","following_url":"https://api.github.com/users/jdv/following{/other_user}","gists_url":"https://api.github.com/users/jdv/gists{/gist_id}","starred_url":"https://api.github.com/users/jdv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdv/subscriptions","organizations_url":"https://api.github.com/users/jdv/orgs","repos_url":"https://api.github.com/users/jdv/repos","events_url":"https://api.github.com/users/jdv/events{/privacy}","received_events_url":"https://api.github.com/users/jdv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-03-26T18:39:44Z","updated_at":"2015-06-03T09:57:45Z","closed_at":"2015-06-03T09:57:45Z","body":"Some of our processes started getting intermittent 500s on put_filename()\r\ncalls which is fine though its still not clear why only certain processes suffer\r\nfrom this minor issue.\r\n\r\nThe problematic issue is that the subsequent retry is failing with a 400.\r\nAfter further investigation it was discovered that these post 500 400s\r\nare caused by the content iterator being midstream for the retry\r\nrequest and therefore delivering partial content.  A hack we may employ\r\nfor the time being is to just exhaust the iterator before a retry since it will\r\nthen reset itself.  But a real fix would probably involve being able to reset\r\nor replace the iterator before a retry."}}