{"action":"created","issue":{"url":"https://api.github.com/repos/mzabriskie/axios/issues/118","labels_url":"https://api.github.com/repos/mzabriskie/axios/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/mzabriskie/axios/issues/118/comments","events_url":"https://api.github.com/repos/mzabriskie/axios/issues/118/events","html_url":"https://github.com/mzabriskie/axios/issues/118","id":109252570,"number":118,"title":"Uncaught (in promise) TypeError: Cannot read property 'protocol' of undefined","user":{"login":"ivitivan","id":13035381,"avatar_url":"https://avatars.githubusercontent.com/u/13035381?v=3","gravatar_id":"","url":"https://api.github.com/users/ivitivan","html_url":"https://github.com/ivitivan","followers_url":"https://api.github.com/users/ivitivan/followers","following_url":"https://api.github.com/users/ivitivan/following{/other_user}","gists_url":"https://api.github.com/users/ivitivan/gists{/gist_id}","starred_url":"https://api.github.com/users/ivitivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivitivan/subscriptions","organizations_url":"https://api.github.com/users/ivitivan/orgs","repos_url":"https://api.github.com/users/ivitivan/repos","events_url":"https://api.github.com/users/ivitivan/events{/privacy}","received_events_url":"https://api.github.com/users/ivitivan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-01T08:31:17Z","updated_at":"2015-10-01T13:49:42Z","closed_at":"2015-10-01T13:49:42Z","body":"Hi!\r\n\r\nI'm trying to use your library but I get an error:\r\n```\r\nUncaught (in promise) TypeError: Cannot read property 'protocol' of undefined\r\n```\r\nI was using your example\r\n```js\r\naxios.get('https://api.github.com/users/benjamingeorge')\r\n  .then(function (res) {\r\n    console.log(res.data);\r\n  })\r\n  .catch(function(res) {\r\n    if(res instanceof Error) {\r\n      console.log(res.message);\r\n    } else {\r\n      console.log(res.data);\r\n    }\r\n  });\r\n```\r\nThe error happens [here] (https://github.com/mzabriskie/axios/blob/eca2ac88ebd28db1ebff3757574974a6fcdd0bf6/lib/helpers/urlIsSameOrigin.js#L56).\r\nI'm using browserify and chrome 45."},"comment":{"url":"https://api.github.com/repos/mzabriskie/axios/issues/comments/144731286","html_url":"https://github.com/mzabriskie/axios/issues/118#issuecomment-144731286","issue_url":"https://api.github.com/repos/mzabriskie/axios/issues/118","id":144731286,"user":{"login":"ivitivan","id":13035381,"avatar_url":"https://avatars.githubusercontent.com/u/13035381?v=3","gravatar_id":"","url":"https://api.github.com/users/ivitivan","html_url":"https://github.com/ivitivan","followers_url":"https://api.github.com/users/ivitivan/followers","following_url":"https://api.github.com/users/ivitivan/following{/other_user}","gists_url":"https://api.github.com/users/ivitivan/gists{/gist_id}","starred_url":"https://api.github.com/users/ivitivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivitivan/subscriptions","organizations_url":"https://api.github.com/users/ivitivan/orgs","repos_url":"https://api.github.com/users/ivitivan/repos","events_url":"https://api.github.com/users/ivitivan/events{/privacy}","received_events_url":"https://api.github.com/users/ivitivan/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T13:49:42Z","updated_at":"2015-10-01T13:49:42Z","body":"I messed up in the code. Everything works fine now."}}