{"action":"created","issue":{"url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/183","repository_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push","labels_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/183/comments","events_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/183/events","html_url":"https://github.com/nordnet/cordova-hot-code-push/issues/183","id":164214692,"number":183,"title":"Error in downloading file","user":{"login":"ashokkumar88","id":11060139,"avatar_url":"https://avatars.githubusercontent.com/u/11060139?v=3","gravatar_id":"","url":"https://api.github.com/users/ashokkumar88","html_url":"https://github.com/ashokkumar88","followers_url":"https://api.github.com/users/ashokkumar88/followers","following_url":"https://api.github.com/users/ashokkumar88/following{/other_user}","gists_url":"https://api.github.com/users/ashokkumar88/gists{/gist_id}","starred_url":"https://api.github.com/users/ashokkumar88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashokkumar88/subscriptions","organizations_url":"https://api.github.com/users/ashokkumar88/orgs","repos_url":"https://api.github.com/users/ashokkumar88/repos","events_url":"https://api.github.com/users/ashokkumar88/events{/privacy}","received_events_url":"https://api.github.com/users/ashokkumar88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-07T02:11:09Z","updated_at":"2016-07-07T07:54:53Z","closed_at":null,"body":"I integrated the plugin with my app but I am getting the below error\r\n\r\nW/System.err﹕File is corrupted: checksum 01c59aa677bb62dcbf4f1d9928b6744b doesn't match hash 337e94e846f1b32dfd48c5f91253656c of the downloaded file\r\nat com.nordnetab.chcp.main.network.FileDownloader.download(FileDownloader.java:92)\r\nat com.nordnetab.chcp.main.network.FileDownloader.downloadFiles(FileDownloader.java:51)\r\nat com.nordnetab.chcp.main.updater.UpdateLoaderWorker.downloadNewAndChangedFiles(UpdateLoaderWorker.java:221)\r\n\r\nPlease help."},"comment":{"url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/comments/231008594","html_url":"https://github.com/nordnet/cordova-hot-code-push/issues/183#issuecomment-231008594","issue_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/183","id":231008594,"user":{"login":"nikDemyankov","id":13447778,"avatar_url":"https://avatars.githubusercontent.com/u/13447778?v=3","gravatar_id":"","url":"https://api.github.com/users/nikDemyankov","html_url":"https://github.com/nikDemyankov","followers_url":"https://api.github.com/users/nikDemyankov/followers","following_url":"https://api.github.com/users/nikDemyankov/following{/other_user}","gists_url":"https://api.github.com/users/nikDemyankov/gists{/gist_id}","starred_url":"https://api.github.com/users/nikDemyankov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikDemyankov/subscriptions","organizations_url":"https://api.github.com/users/nikDemyankov/orgs","repos_url":"https://api.github.com/users/nikDemyankov/repos","events_url":"https://api.github.com/users/nikDemyankov/events{/privacy}","received_events_url":"https://api.github.com/users/nikDemyankov/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T07:54:53Z","updated_at":"2016-07-07T07:54:53Z","body":"When you execute `cordova-hcp build` - CLI client generates `chcp.manifest` config with hashes of all the files in `www` folder. Then you need to upload it with the files on the server.\r\n\r\nWhen plugin downloads some file from the server - it calculates his hash (simple md5(file)) and compares it with the value from the `chcp.manifest`. If it doesn't match - that error occur. \r\n\r\nSo, first, make sure, that you generated `chcp.manifest` with `cordova-hcp build` and uploaded all the right files on the server. If you changed them in any way and didn't change the hash value in `chcp.manifest` - update will be rejected."}}
{"actor":{"display_login":"nikDemyankov"}}