{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/22329","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/22329/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/22329/comments","events_url":"https://api.github.com/repos/angular/angular/issues/22329/events","html_url":"https://github.com/angular/angular/issues/22329","id":298642858,"number":22329,"title":"[HttpClient POST] `Invalid calling object` in IE11 and Edge","user":{"login":"dalidovski","id":22326523,"avatar_url":"https://avatars0.githubusercontent.com/u/22326523?v=4","gravatar_id":"","url":"https://api.github.com/users/dalidovski","html_url":"https://github.com/dalidovski","followers_url":"https://api.github.com/users/dalidovski/followers","following_url":"https://api.github.com/users/dalidovski/following{/other_user}","gists_url":"https://api.github.com/users/dalidovski/gists{/gist_id}","starred_url":"https://api.github.com/users/dalidovski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalidovski/subscriptions","organizations_url":"https://api.github.com/users/dalidovski/orgs","repos_url":"https://api.github.com/users/dalidovski/repos","events_url":"https://api.github.com/users/dalidovski/events{/privacy}","received_events_url":"https://api.github.com/users/dalidovski/received_events","type":"User","site_admin":false},"labels":[{"id":644231098,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20common/http","name":"comp: common/http","color":"c5def5","default":false},{"id":348933279,"url":"https://api.github.com/repos/angular/angular/labels/state:%20Need%20repro","name":"state: Need repro","color":"e11d21","default":false},{"id":130606843,"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug/fix","name":"type: bug/fix","color":"EEEEEE","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-20T15:44:52Z","updated_at":"2018-02-22T10:32:44Z","closed_at":"2018-02-22T10:32:44Z","author_association":"NONE","body":"<!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n-->\r\n\r\n## I'm submitting a...\r\n<!-- Check one of the following options with \"x\" -->\r\n<pre><code>\r\n[ ] Regression (a behavior that used to work and stopped working in a new release)\r\n[x] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[ ] Feature request\r\n[ ] Documentation issue or 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</code></pre>\r\n\r\n## Current behavior;\r\nI'm using HttpClient to post a request, It's working as expected on Chrome, Mozzila and Safari. However, I'm facing an issue with IE11 and Edge with the following errror : \r\n\r\n**Error occured while authenticating\r\nERROR TypeError: Invalid calling object.**\r\n\r\nBelow the source code:\r\n\r\n> import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';\r\n> ...\r\n> \r\n>    let params = new HttpParams();\r\n>     params = params.append('username', user_id);\r\n>     params = params.append('password', password);\r\n>     this.http.post(API_URLS.loginURL, params).subscribe(\r\n>       res => {\r\n>         console.log('success');\r\n>         },\r\n>       err => {\r\n>        console.log('Error occured while authenticating');\r\n>         console.log('err');\r\n>       });\r\n\r\n\r\n## Expected behavior\r\nThe expected behavior is that the browser (IE 11/Edge) send the http request and return success.\r\n\r\n\r\n## Environment\r\n\r\nAngular CLI: 1.6.0\r\nNode: 8.9.2\r\nOS: win32 x64\r\nAngular: 5.2.5\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\n<pre><code>\r\nAngular version: 5.2.5\r\n<!-- Check whether this is still an issue in the most recent Angular version -->\r\n\r\nBrowser:\r\n- [ ] Chrome (desktop) version XX\r\n- [ ] Chrome (Android) version XX\r\n- [ ] Chrome (iOS) version XX\r\n- [ ] Firefox version XX\r\n- [ ] Safari (desktop) version XX\r\n- [ ] Safari (iOS) version XX\r\n- [x] IE version 11\r\n- [x] Edge\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/367638680","html_url":"https://github.com/angular/angular/issues/22329#issuecomment-367638680","issue_url":"https://api.github.com/repos/angular/angular/issues/22329","id":367638680,"user":{"login":"dalidovski","id":22326523,"avatar_url":"https://avatars0.githubusercontent.com/u/22326523?v=4","gravatar_id":"","url":"https://api.github.com/users/dalidovski","html_url":"https://github.com/dalidovski","followers_url":"https://api.github.com/users/dalidovski/followers","following_url":"https://api.github.com/users/dalidovski/following{/other_user}","gists_url":"https://api.github.com/users/dalidovski/gists{/gist_id}","starred_url":"https://api.github.com/users/dalidovski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalidovski/subscriptions","organizations_url":"https://api.github.com/users/dalidovski/orgs","repos_url":"https://api.github.com/users/dalidovski/repos","events_url":"https://api.github.com/users/dalidovski/events{/privacy}","received_events_url":"https://api.github.com/users/dalidovski/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T10:32:44Z","updated_at":"2018-02-22T10:32:44Z","author_association":"NONE","body":"Pace js is overriding XHR requests w they have a bug with IE11. It's not related to Angular/http.\r\nSorry for the inconvenience."}}
{"actor":{"display_login":"dalidovski"}}