{"action":"created","issue":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/1357","labels_url":"https://api.github.com/repos/sunpy/sunpy/issues/1357/labels{/name}","comments_url":"https://api.github.com/repos/sunpy/sunpy/issues/1357/comments","events_url":"https://api.github.com/repos/sunpy/sunpy/issues/1357/events","html_url":"https://github.com/sunpy/sunpy/issues/1357","id":64047901,"number":1357,"title":"JSOC download skips first file in Results object","user":{"login":"Cadair","id":1391051,"avatar_url":"https://avatars.githubusercontent.com/u/1391051?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadair","html_url":"https://github.com/Cadair","followers_url":"https://api.github.com/users/Cadair/followers","following_url":"https://api.github.com/users/Cadair/following{/other_user}","gists_url":"https://api.github.com/users/Cadair/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadair/subscriptions","organizations_url":"https://api.github.com/users/Cadair/orgs","repos_url":"https://api.github.com/users/Cadair/repos","events_url":"https://api.github.com/users/Cadair/events{/privacy}","received_events_url":"https://api.github.com/users/Cadair/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sunpy/sunpy/labels/affects-release","name":"affects-release","color":"fbca04"},{"url":"https://api.github.com/repos/sunpy/sunpy/labels/Bug?","name":"Bug?","color":"e11d21"},{"url":"https://api.github.com/repos/sunpy/sunpy/labels/net","name":"net","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"Cadair","id":1391051,"avatar_url":"https://avatars.githubusercontent.com/u/1391051?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadair","html_url":"https://github.com/Cadair","followers_url":"https://api.github.com/users/Cadair/followers","following_url":"https://api.github.com/users/Cadair/following{/other_user}","gists_url":"https://api.github.com/users/Cadair/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadair/subscriptions","organizations_url":"https://api.github.com/users/Cadair/orgs","repos_url":"https://api.github.com/users/Cadair/repos","events_url":"https://api.github.com/users/Cadair/events{/privacy}","received_events_url":"https://api.github.com/users/Cadair/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-03-24T17:02:32Z","updated_at":"2015-03-30T15:18:27Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/comments/87720202","html_url":"https://github.com/sunpy/sunpy/issues/1357#issuecomment-87720202","issue_url":"https://api.github.com/repos/sunpy/sunpy/issues/1357","id":87720202,"user":{"login":"dumindux","id":3449808,"avatar_url":"https://avatars.githubusercontent.com/u/3449808?v=3","gravatar_id":"","url":"https://api.github.com/users/dumindux","html_url":"https://github.com/dumindux","followers_url":"https://api.github.com/users/dumindux/followers","following_url":"https://api.github.com/users/dumindux/following{/other_user}","gists_url":"https://api.github.com/users/dumindux/gists{/gist_id}","starred_url":"https://api.github.com/users/dumindux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumindux/subscriptions","organizations_url":"https://api.github.com/users/dumindux/orgs","repos_url":"https://api.github.com/users/dumindux/repos","events_url":"https://api.github.com/users/dumindux/events{/privacy}","received_events_url":"https://api.github.com/users/dumindux/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T15:18:27Z","updated_at":"2015-03-30T15:18:27Z","body":"Here a file is skipped because results.poke() is called at following line,\r\nhttps://github.com/sunpy/sunpy/blob/master/sunpy/net/jsoc/jsoc.py#L427\r\n\r\nvso.Results object keeps count of the downloads and poke() tells that a one download is finished. since in the above poke() is called earlier, Results object only keeps track of (real downloads-1) downloads. Because of this. Results.wait() method returns when only (real downloads-1)  completed. So it leaves out a download.  "}}