{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/13501","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/13501/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/13501/comments","events_url":"https://api.github.com/repos/angular/angular/issues/13501/events","html_url":"https://github.com/angular/angular/issues/13501","id":195882567,"number":13501,"title":"Response from Http in error condition is blank in Chrome","user":{"login":"mscharp","id":1426929,"avatar_url":"https://avatars.githubusercontent.com/u/1426929?v=3","gravatar_id":"","url":"https://api.github.com/users/mscharp","html_url":"https://github.com/mscharp","followers_url":"https://api.github.com/users/mscharp/followers","following_url":"https://api.github.com/users/mscharp/following{/other_user}","gists_url":"https://api.github.com/users/mscharp/gists{/gist_id}","starred_url":"https://api.github.com/users/mscharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mscharp/subscriptions","organizations_url":"https://api.github.com/users/mscharp/orgs","repos_url":"https://api.github.com/users/mscharp/repos","events_url":"https://api.github.com/users/mscharp/events{/privacy}","received_events_url":"https://api.github.com/users/mscharp/received_events","type":"User","site_admin":false},"labels":[{"id":279828207,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20http","name":"comp: http","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-15T18:41:55Z","updated_at":"2016-12-15T21:28:35Z","closed_at":null,"body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\r\n-->\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\n\r\nWhen Chrome \"cancels\" a web request, the response that angular is propagating is blank.  Firefox and IE have the response properties populated with information.\r\n\r\n**Expected behavior**\r\nThe response object has its properties populated with information in all browsers.\r\n\r\n**Minimal reproduction of the problem with instructions**\r\nBrowse to an angular application, with a login page via HTTPS.\r\nEnter credentials and post to /login via HTTPS.\r\nHave server respond with 302 and a Location header of HTTP.\r\nChrome will cancel the redirect.\r\nThe `...catch( error => { console.log( error ); } )` error handler will catch the response, but none of the properties inside of \"error\" are populated, except for \"type\" which is \"3\".\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nSo that the behavior is consistent between browsers, and the user can respond to errors accordingly.\r\n\r\n**Please tell us about your environment:**\r\nChrome 55 (but have seen the problem in other versions as well )\r\nAngular app inside of spring boot application deployed into tc server\r\n\r\n* **Angular version:** 2.0.0\r\n\r\n* **Browser:** \r\nChrome\r\n\r\n\r\n**Canceled xhr requests**\r\n\r\n![screen shot 2016-12-15 at 11 09 37 am](https://cloud.githubusercontent.com/assets/1426929/21236344/e6efb958-c2b7-11e6-8b0d-543fb3de6ba2.png)\r\n\r\n**Blank response in Chrome**\r\n\r\n![screen shot 2016-12-15 at 11 10 51 am](https://cloud.githubusercontent.com/assets/1426929/21236345/e6f159e8-c2b7-11e6-82e7-7ba0eef0547b.png)\r\n![screen shot 2016-12-15 at 11 11 47 am](https://cloud.githubusercontent.com/assets/1426929/21236343/e6efa0d0-c2b7-11e6-8b1c-a861bf1c6f87.png)\r\n\r\n**Good response in FF ( I've cut out the url property for privacy )**\r\n\r\n![screen shot 2016-12-15 at 11 39 58 am](https://cloud.githubusercontent.com/assets/1426929/21237242/542062ea-c2bb-11e6-81e8-c7b7b425c88b.png)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/267449305","html_url":"https://github.com/angular/angular/issues/13501#issuecomment-267449305","issue_url":"https://api.github.com/repos/angular/angular/issues/13501","id":267449305,"user":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T21:28:35Z","updated_at":"2016-12-15T21:28:35Z","body":"ok, can u try to make the same request using plain xhr or fetch api and compare results?"}}
{"actor":{"display_login":"DzmitryShylovich"}}