{"action":"created","issue":{"url":"https://api.github.com/repos/mzabriskie/axios/issues/204","labels_url":"https://api.github.com/repos/mzabriskie/axios/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/mzabriskie/axios/issues/204/comments","events_url":"https://api.github.com/repos/mzabriskie/axios/issues/204/events","html_url":"https://github.com/mzabriskie/axios/issues/204","id":128176634,"number":204,"title":"Axios doesn't resolve/reject on network level errors (i.e. onerror)","user":{"login":"latentflip","id":78225,"avatar_url":"https://avatars.githubusercontent.com/u/78225?v=3","gravatar_id":"","url":"https://api.github.com/users/latentflip","html_url":"https://github.com/latentflip","followers_url":"https://api.github.com/users/latentflip/followers","following_url":"https://api.github.com/users/latentflip/following{/other_user}","gists_url":"https://api.github.com/users/latentflip/gists{/gist_id}","starred_url":"https://api.github.com/users/latentflip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latentflip/subscriptions","organizations_url":"https://api.github.com/users/latentflip/orgs","repos_url":"https://api.github.com/users/latentflip/repos","events_url":"https://api.github.com/users/latentflip/events{/privacy}","received_events_url":"https://api.github.com/users/latentflip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-22T15:17:22Z","updated_at":"2016-01-22T16:40:55Z","closed_at":null,"body":"I've noticed that on current chrome (unsure how other browsers treat this) axios doesn't resolve or reject if I forget to start my api server. I believe it's because at the network level, onload never gets called on a request, but onerror does instead, and looking at https://github.com/mzabriskie/axios/blob/master/lib/adapters/xhr.js we don't handle onerror at all.\r\n\r\n![localhost 3000 2016-01-22 15-16-05](https://cloud.githubusercontent.com/assets/78225/12514400/17ac83d6-c11b-11e5-8aa5-c48fbd3310f1.png)\r\n\r\nAny reason not to add a `onerror` handler? Happy to attempt a PR if not."},"comment":{"url":"https://api.github.com/repos/mzabriskie/axios/issues/comments/173972238","html_url":"https://github.com/mzabriskie/axios/issues/204#issuecomment-173972238","issue_url":"https://api.github.com/repos/mzabriskie/axios/issues/204","id":173972238,"user":{"login":"latentflip","id":78225,"avatar_url":"https://avatars.githubusercontent.com/u/78225?v=3","gravatar_id":"","url":"https://api.github.com/users/latentflip","html_url":"https://github.com/latentflip","followers_url":"https://api.github.com/users/latentflip/followers","following_url":"https://api.github.com/users/latentflip/following{/other_user}","gists_url":"https://api.github.com/users/latentflip/gists{/gist_id}","starred_url":"https://api.github.com/users/latentflip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latentflip/subscriptions","organizations_url":"https://api.github.com/users/latentflip/orgs","repos_url":"https://api.github.com/users/latentflip/repos","events_url":"https://api.github.com/users/latentflip/events{/privacy}","received_events_url":"https://api.github.com/users/latentflip/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T16:40:55Z","updated_at":"2016-01-22T16:40:55Z","body":":+1: agreed, done: #205"}}