{"action":"created","issue":{"url":"https://api.github.com/repos/Raynos/xhr/issues/70","labels_url":"https://api.github.com/repos/Raynos/xhr/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/Raynos/xhr/issues/70/comments","events_url":"https://api.github.com/repos/Raynos/xhr/issues/70/events","html_url":"https://github.com/Raynos/xhr/issues/70","id":65476489,"number":70,"title":"xhr.send inside a try catch block","user":{"login":"Semigradsky","id":1198848,"avatar_url":"https://avatars.githubusercontent.com/u/1198848?v=3","gravatar_id":"","url":"https://api.github.com/users/Semigradsky","html_url":"https://github.com/Semigradsky","followers_url":"https://api.github.com/users/Semigradsky/followers","following_url":"https://api.github.com/users/Semigradsky/following{/other_user}","gists_url":"https://api.github.com/users/Semigradsky/gists{/gist_id}","starred_url":"https://api.github.com/users/Semigradsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Semigradsky/subscriptions","organizations_url":"https://api.github.com/users/Semigradsky/orgs","repos_url":"https://api.github.com/users/Semigradsky/repos","events_url":"https://api.github.com/users/Semigradsky/events{/privacy}","received_events_url":"https://api.github.com/users/Semigradsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-31T15:19:41Z","updated_at":"2015-03-31T19:49:33Z","closed_at":null,"body":"> To be safe when handling various kinds of links, the `xhr.send` should be inside a try catch block\r\n\r\nWhat do you think about this?\r\nIE throw `Invalid argument` error in different cases: https://www.google.com/search?q=xhr%20ie%20invalid%20argument"},"comment":{"url":"https://api.github.com/repos/Raynos/xhr/issues/comments/88225388","html_url":"https://github.com/Raynos/xhr/issues/70#issuecomment-88225388","issue_url":"https://api.github.com/repos/Raynos/xhr/issues/70","id":88225388,"user":{"login":"naugtur","id":509375,"avatar_url":"https://avatars.githubusercontent.com/u/509375?v=3","gravatar_id":"","url":"https://api.github.com/users/naugtur","html_url":"https://github.com/naugtur","followers_url":"https://api.github.com/users/naugtur/followers","following_url":"https://api.github.com/users/naugtur/following{/other_user}","gists_url":"https://api.github.com/users/naugtur/gists{/gist_id}","starred_url":"https://api.github.com/users/naugtur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naugtur/subscriptions","organizations_url":"https://api.github.com/users/naugtur/orgs","repos_url":"https://api.github.com/users/naugtur/repos","events_url":"https://api.github.com/users/naugtur/events{/privacy}","received_events_url":"https://api.github.com/users/naugtur/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T19:49:33Z","updated_at":"2015-03-31T19:49:33Z","body":"if `xhr.send` throws instead of calling the error callback, it's an invocation error and imho it's correctly thrown.\r\nAlso, the case you link to seems to affect IEs 6-7\r\n\r\nWe would have more to talk about if you could give us an actual case of:\r\n xhr throws instead of passing error to the callback when it is correctly called but the request fails."}}