{"action":"created","issue":{"url":"https://api.github.com/repos/patdek/gongflow/issues/2","repository_url":"https://api.github.com/repos/patdek/gongflow","labels_url":"https://api.github.com/repos/patdek/gongflow/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/patdek/gongflow/issues/2/comments","events_url":"https://api.github.com/repos/patdek/gongflow/issues/2/events","html_url":"https://github.com/patdek/gongflow/issues/2","id":150015992,"number":2,"title":"GET handler returning 404 interrupts the upload process; ng-flow 2.7.1","user":{"login":"maclav3","id":10462736,"avatar_url":"https://avatars.githubusercontent.com/u/10462736?v=3","gravatar_id":"","url":"https://api.github.com/users/maclav3","html_url":"https://github.com/maclav3","followers_url":"https://api.github.com/users/maclav3/followers","following_url":"https://api.github.com/users/maclav3/following{/other_user}","gists_url":"https://api.github.com/users/maclav3/gists{/gist_id}","starred_url":"https://api.github.com/users/maclav3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maclav3/subscriptions","organizations_url":"https://api.github.com/users/maclav3/orgs","repos_url":"https://api.github.com/users/maclav3/repos","events_url":"https://api.github.com/users/maclav3/events{/privacy}","received_events_url":"https://api.github.com/users/maclav3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-21T09:18:08Z","updated_at":"2016-04-25T07:27:26Z","closed_at":null,"body":"According to https://github.com/flowjs/flow.js#handling-get-or-test-requests, if the GET handler\r\n> returns a permanent error status, upload is stopped\r\n\r\nThe code 404 that is currently returned by gongflow.ChunkStatus() is recognized as a permanent error code in ng-flow 2.7.1 (flow.js 2.10.1). So if resumable uploads are enabled, the upload stops after the first GET request.\r\n\r\nThe solution is either to change the permanent error codes list not to include 404 or to intercept the 404 code from ChunkStatus() and return another HTTP code from the handler instead."},"comment":{"url":"https://api.github.com/repos/patdek/gongflow/issues/comments/214180340","html_url":"https://github.com/patdek/gongflow/issues/2#issuecomment-214180340","issue_url":"https://api.github.com/repos/patdek/gongflow/issues/2","id":214180340,"user":{"login":"maclav3","id":10462736,"avatar_url":"https://avatars.githubusercontent.com/u/10462736?v=3","gravatar_id":"","url":"https://api.github.com/users/maclav3","html_url":"https://github.com/maclav3","followers_url":"https://api.github.com/users/maclav3/followers","following_url":"https://api.github.com/users/maclav3/following{/other_user}","gists_url":"https://api.github.com/users/maclav3/gists{/gist_id}","starred_url":"https://api.github.com/users/maclav3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maclav3/subscriptions","organizations_url":"https://api.github.com/users/maclav3/orgs","repos_url":"https://api.github.com/users/maclav3/repos","events_url":"https://api.github.com/users/maclav3/events{/privacy}","received_events_url":"https://api.github.com/users/maclav3/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T07:27:26Z","updated_at":"2016-04-25T07:27:26Z","body":"Of course, the permanent error codes in ng-flow are configurable, so this is just a minor issue. I mention it mainly because it prevents the normal cooperation of the two libraries on default settings."}}