{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2536","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2536/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2536/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2536/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/2536","id":118562135,"number":2536,"title":"get_url frequently produces corrupted files","user":{"login":"warrenseine","id":539804,"avatar_url":"https://avatars.githubusercontent.com/u/539804?v=3","gravatar_id":"","url":"https://api.github.com/users/warrenseine","html_url":"https://github.com/warrenseine","followers_url":"https://api.github.com/users/warrenseine/followers","following_url":"https://api.github.com/users/warrenseine/following{/other_user}","gists_url":"https://api.github.com/users/warrenseine/gists{/gist_id}","starred_url":"https://api.github.com/users/warrenseine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warrenseine/subscriptions","organizations_url":"https://api.github.com/users/warrenseine/orgs","repos_url":"https://api.github.com/users/warrenseine/repos","events_url":"https://api.github.com/users/warrenseine/events{/privacy}","received_events_url":"https://api.github.com/users/warrenseine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-24T09:04:49Z","updated_at":"2015-12-03T06:40:31Z","closed_at":null,"body":"Frequently, `get_url` succeeds but the downloaded file is corrupted. I should use the `checksum` argument to ensure the success of the download, but still, I'm wondering _why_ it fails. Running the same HTTP request with `curl` on the same machine \"always\" succeeds (quoting, because this definitely requires some proper testing).\r\n\r\nI've had issues with HTTPS related to the Python version in the past but this is pure HTTP. The connection may not be perfect but I haven't encountered this kind of issue elsewhere. I'm downloading from a Jenkins server.\r\n\r\nHave you had similar reports at times? Do you have any recommendation to diagnose it?"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/161532831","html_url":"https://github.com/ansible/ansible-modules-core/issues/2536#issuecomment-161532831","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2536","id":161532831,"user":{"login":"warrenseine","id":539804,"avatar_url":"https://avatars.githubusercontent.com/u/539804?v=3","gravatar_id":"","url":"https://api.github.com/users/warrenseine","html_url":"https://github.com/warrenseine","followers_url":"https://api.github.com/users/warrenseine/followers","following_url":"https://api.github.com/users/warrenseine/following{/other_user}","gists_url":"https://api.github.com/users/warrenseine/gists{/gist_id}","starred_url":"https://api.github.com/users/warrenseine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warrenseine/subscriptions","organizations_url":"https://api.github.com/users/warrenseine/orgs","repos_url":"https://api.github.com/users/warrenseine/repos","events_url":"https://api.github.com/users/warrenseine/events{/privacy}","received_events_url":"https://api.github.com/users/warrenseine/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T06:40:31Z","updated_at":"2015-12-03T06:40:31Z","body":"This is not a specific URL, but all the URL have tried come from our build server. So that might be the issue on the server side. I'd say it happens about 1 in 4 and there is no specific size (average is 50 MB). I will make some proper test first before bothering you more."}}