{"action":"closed","number":2667,"pull_request":{"url":"https://api.github.com/repos/angular/angular/pulls/2667","id":38189752,"html_url":"https://github.com/angular/angular/pull/2667","diff_url":"https://github.com/angular/angular/pull/2667.diff","patch_url":"https://github.com/angular/angular/pull/2667.patch","issue_url":"https://api.github.com/repos/angular/angular/issues/2667","number":2667,"state":"closed","locked":false,"title":"feat(http): xhr error listener invokes onError","user":{"login":"gdi2290","id":1016365,"avatar_url":"https://avatars.githubusercontent.com/u/1016365?v=3","gravatar_id":"","url":"https://api.github.com/users/gdi2290","html_url":"https://github.com/gdi2290","followers_url":"https://api.github.com/users/gdi2290/followers","following_url":"https://api.github.com/users/gdi2290/following{/other_user}","gists_url":"https://api.github.com/users/gdi2290/gists{/gist_id}","starred_url":"https://api.github.com/users/gdi2290/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdi2290/subscriptions","organizations_url":"https://api.github.com/users/gdi2290/orgs","repos_url":"https://api.github.com/users/gdi2290/repos","events_url":"https://api.github.com/users/gdi2290/events{/privacy}","received_events_url":"https://api.github.com/users/gdi2290/received_events","type":"User","site_admin":false},"body":"```es6\r\n    this._xhr.addEventListener('error', (err) => {\r\n      var responseOptions = new ResponseOptions({body: err, type: ResponseTypes.Error});\r\n      if (isPresent(baseResponseOptions)) {\r\n        responseOptions = baseResponseOptions.merge(responseOptions);\r\n      }\r\n      ObservableWrapper.callThrow(this.response, new Response(responseOptions))\r\n    });\r\n```\r\n\r\n<!-- Reviewable:start -->\r\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/angular/angular/2667)\r\n<!-- Reviewable:end -->\r\n","created_at":"2015-06-21T20:05:21Z","updated_at":"2015-07-05T11:50:14Z","closed_at":"2015-07-05T11:50:14Z","merged_at":null,"merge_commit_sha":"bbc36636908c8ffa5b2f69309d8d238a03089722","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular/angular/pulls/2667/commits","review_comments_url":"https://api.github.com/repos/angular/angular/pulls/2667/comments","review_comment_url":"https://api.github.com/repos/angular/angular/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angular/issues/2667/comments","statuses_url":"https://api.github.com/repos/angular/angular/statuses/5446c6f8a637ece6550d7fb3eddd33d7faa2aacd","head":{"label":"gdi2290:patch-8","ref":"patch-8","sha":"5446c6f8a637ece6550d7fb3eddd33d7faa2aacd","user":{"login":"gdi2290","id":1016365,"avatar_url":"https://avatars.githubusercontent.com/u/1016365?v=3","gravatar_id":"","url":"https://api.github.com/users/gdi2290","html_url":"https://github.com/gdi2290","followers_url":"https://api.github.com/users/gdi2290/followers","following_url":"https://api.github.com/users/gdi2290/following{/other_user}","gists_url":"https://api.github.com/users/gdi2290/gists{/gist_id}","starred_url":"https://api.github.com/users/gdi2290/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdi2290/subscriptions","organizations_url":"https://api.github.com/users/gdi2290/orgs","repos_url":"https://api.github.com/users/gdi2290/repos","events_url":"https://api.github.com/users/gdi2290/events{/privacy}","received_events_url":"https://api.github.com/users/gdi2290/received_events","type":"User","site_admin":false},"repo":{"id":26299851,"name":"angular","full_name":"gdi2290/angular","owner":{"login":"gdi2290","id":1016365,"avatar_url":"https://avatars.githubusercontent.com/u/1016365?v=3","gravatar_id":"","url":"https://api.github.com/users/gdi2290","html_url":"https://github.com/gdi2290","followers_url":"https://api.github.com/users/gdi2290/followers","following_url":"https://api.github.com/users/gdi2290/following{/other_user}","gists_url":"https://api.github.com/users/gdi2290/gists{/gist_id}","starred_url":"https://api.github.com/users/gdi2290/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdi2290/subscriptions","organizations_url":"https://api.github.com/users/gdi2290/orgs","repos_url":"https://api.github.com/users/gdi2290/repos","events_url":"https://api.github.com/users/gdi2290/events{/privacy}","received_events_url":"https://api.github.com/users/gdi2290/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gdi2290/angular","description":"","fork":true,"url":"https://api.github.com/repos/gdi2290/angular","forks_url":"https://api.github.com/repos/gdi2290/angular/forks","keys_url":"https://api.github.com/repos/gdi2290/angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gdi2290/angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gdi2290/angular/teams","hooks_url":"https://api.github.com/repos/gdi2290/angular/hooks","issue_events_url":"https://api.github.com/repos/gdi2290/angular/issues/events{/number}","events_url":"https://api.github.com/repos/gdi2290/angular/events","assignees_url":"https://api.github.com/repos/gdi2290/angular/assignees{/user}","branches_url":"https://api.github.com/repos/gdi2290/angular/branches{/branch}","tags_url":"https://api.github.com/repos/gdi2290/angular/tags","blobs_url":"https://api.github.com/repos/gdi2290/angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gdi2290/angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gdi2290/angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/gdi2290/angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gdi2290/angular/statuses/{sha}","languages_url":"https://api.github.com/repos/gdi2290/angular/languages","stargazers_url":"https://api.github.com/repos/gdi2290/angular/stargazers","contributors_url":"https://api.github.com/repos/gdi2290/angular/contributors","subscribers_url":"https://api.github.com/repos/gdi2290/angular/subscribers","subscription_url":"https://api.github.com/repos/gdi2290/angular/subscription","commits_url":"https://api.github.com/repos/gdi2290/angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/gdi2290/angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/gdi2290/angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/gdi2290/angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/gdi2290/angular/contents/{+path}","compare_url":"https://api.github.com/repos/gdi2290/angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gdi2290/angular/merges","archive_url":"https://api.github.com/repos/gdi2290/angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gdi2290/angular/downloads","issues_url":"https://api.github.com/repos/gdi2290/angular/issues{/number}","pulls_url":"https://api.github.com/repos/gdi2290/angular/pulls{/number}","milestones_url":"https://api.github.com/repos/gdi2290/angular/milestones{/number}","notifications_url":"https://api.github.com/repos/gdi2290/angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gdi2290/angular/labels{/name}","releases_url":"https://api.github.com/repos/gdi2290/angular/releases{/id}","created_at":"2014-11-07T02:19:18Z","updated_at":"2015-05-01T05:55:12Z","pushed_at":"2015-07-05T11:50:14Z","git_url":"git://github.com/gdi2290/angular.git","ssh_url":"git@github.com:gdi2290/angular.git","clone_url":"https://github.com/gdi2290/angular.git","svn_url":"https://github.com/gdi2290/angular","homepage":null,"size":10014,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"ad506a7aaa506fdd5dd73f2281f957b63852cca5","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":24195339,"name":"angular","full_name":"angular/angular","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/angular","description":"","fork":false,"url":"https://api.github.com/repos/angular/angular","forks_url":"https://api.github.com/repos/angular/angular/forks","keys_url":"https://api.github.com/repos/angular/angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angular/teams","hooks_url":"https://api.github.com/repos/angular/angular/hooks","issue_events_url":"https://api.github.com/repos/angular/angular/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angular/events","assignees_url":"https://api.github.com/repos/angular/angular/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angular/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angular/tags","blobs_url":"https://api.github.com/repos/angular/angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angular/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angular/languages","stargazers_url":"https://api.github.com/repos/angular/angular/stargazers","contributors_url":"https://api.github.com/repos/angular/angular/contributors","subscribers_url":"https://api.github.com/repos/angular/angular/subscribers","subscription_url":"https://api.github.com/repos/angular/angular/subscription","commits_url":"https://api.github.com/repos/angular/angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angular/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angular/merges","archive_url":"https://api.github.com/repos/angular/angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angular/downloads","issues_url":"https://api.github.com/repos/angular/angular/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angular/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angular/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angular/labels{/name}","releases_url":"https://api.github.com/repos/angular/angular/releases{/id}","created_at":"2014-09-18T16:12:01Z","updated_at":"2015-07-05T09:25:40Z","pushed_at":"2015-07-05T11:10:22Z","git_url":"git://github.com/angular/angular.git","ssh_url":"git@github.com:angular/angular.git","clone_url":"https://github.com/angular/angular.git","svn_url":"https://github.com/angular/angular","homepage":"https://angular.io","size":35087,"stargazers_count":4012,"watchers_count":4012,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1047,"mirror_url":null,"open_issues_count":365,"forks":1047,"open_issues":365,"watchers":4012,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular/pulls/2667"},"html":{"href":"https://github.com/angular/angular/pull/2667"},"issue":{"href":"https://api.github.com/repos/angular/angular/issues/2667"},"comments":{"href":"https://api.github.com/repos/angular/angular/issues/2667/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular/pulls/2667/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angular/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angular/pulls/2667/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular/statuses/5446c6f8a637ece6550d7fb3eddd33d7faa2aacd"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":18,"deletions":1,"changed_files":2}}