{"action":"created","issue":{"url":"https://api.github.com/repos/OpenCouncilData/Ckan-Upload/issues/1","repository_url":"https://api.github.com/repos/OpenCouncilData/Ckan-Upload","labels_url":"https://api.github.com/repos/OpenCouncilData/Ckan-Upload/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/OpenCouncilData/Ckan-Upload/issues/1/comments","events_url":"https://api.github.com/repos/OpenCouncilData/Ckan-Upload/issues/1/events","html_url":"https://github.com/OpenCouncilData/Ckan-Upload/issues/1","id":151306028,"number":1,"title":"Error Uploading","user":{"login":"SkeenP-NGSC","id":17419564,"avatar_url":"https://avatars.githubusercontent.com/u/17419564?v=3","gravatar_id":"","url":"https://api.github.com/users/SkeenP-NGSC","html_url":"https://github.com/SkeenP-NGSC","followers_url":"https://api.github.com/users/SkeenP-NGSC/followers","following_url":"https://api.github.com/users/SkeenP-NGSC/following{/other_user}","gists_url":"https://api.github.com/users/SkeenP-NGSC/gists{/gist_id}","starred_url":"https://api.github.com/users/SkeenP-NGSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SkeenP-NGSC/subscriptions","organizations_url":"https://api.github.com/users/SkeenP-NGSC/orgs","repos_url":"https://api.github.com/users/SkeenP-NGSC/repos","events_url":"https://api.github.com/users/SkeenP-NGSC/events{/privacy}","received_events_url":"https://api.github.com/users/SkeenP-NGSC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-27T06:03:43Z","updated_at":"2016-05-26T00:34:14Z","closed_at":null,"body":"When uploading a zip file, it seems to fail either after a number of bytes have been sent or a particular charactor us met. I set the script to upload the following file:\r\n[wasteroutes.zip](https://github.com/OpenCouncilData/Ckan-Upload/files/237993/wasteroutes.zip)\r\nBut when dpownloaded from data.gov.au it produces the following result.\r\n[wasteroutes (2).zip](https://github.com/OpenCouncilData/Ckan-Upload/files/237994/wasteroutes.2.zip)\r\nViewing the data in a text editor clearly shows not all of the file content is being uploaded. The process seems to work find with text files, but does not so much with binary files.\r\nAny way around this?"},"comment":{"url":"https://api.github.com/repos/OpenCouncilData/Ckan-Upload/issues/comments/221747333","html_url":"https://github.com/OpenCouncilData/Ckan-Upload/issues/1#issuecomment-221747333","issue_url":"https://api.github.com/repos/OpenCouncilData/Ckan-Upload/issues/1","id":221747333,"user":{"login":"SkeenP-NGSC","id":17419564,"avatar_url":"https://avatars.githubusercontent.com/u/17419564?v=3","gravatar_id":"","url":"https://api.github.com/users/SkeenP-NGSC","html_url":"https://github.com/SkeenP-NGSC","followers_url":"https://api.github.com/users/SkeenP-NGSC/followers","following_url":"https://api.github.com/users/SkeenP-NGSC/following{/other_user}","gists_url":"https://api.github.com/users/SkeenP-NGSC/gists{/gist_id}","starred_url":"https://api.github.com/users/SkeenP-NGSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SkeenP-NGSC/subscriptions","organizations_url":"https://api.github.com/users/SkeenP-NGSC/orgs","repos_url":"https://api.github.com/users/SkeenP-NGSC/repos","events_url":"https://api.github.com/users/SkeenP-NGSC/events{/privacy}","received_events_url":"https://api.github.com/users/SkeenP-NGSC/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T00:34:14Z","updated_at":"2016-05-26T00:34:14Z","body":"Added pull request to change default open mode to binary. Optionally, could specifiy an arg and/or detect zip files to make this work on most platforms for most use cases. https://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files"}}
{"actor":{"display_login":"SkeenP-NGSC"}}