{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/rxjs/issues/2007","repository_url":"https://api.github.com/repos/ReactiveX/rxjs","labels_url":"https://api.github.com/repos/ReactiveX/rxjs/issues/2007/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/rxjs/issues/2007/comments","events_url":"https://api.github.com/repos/ReactiveX/rxjs/issues/2007/events","html_url":"https://github.com/ReactiveX/rxjs/issues/2007","id":181206847,"number":2007,"title":"Missing response value on ajax result.","user":{"login":"maierson","id":16655922,"avatar_url":"https://avatars.githubusercontent.com/u/16655922?v=3","gravatar_id":"","url":"https://api.github.com/users/maierson","html_url":"https://github.com/maierson","followers_url":"https://api.github.com/users/maierson/followers","following_url":"https://api.github.com/users/maierson/following{/other_user}","gists_url":"https://api.github.com/users/maierson/gists{/gist_id}","starred_url":"https://api.github.com/users/maierson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maierson/subscriptions","organizations_url":"https://api.github.com/users/maierson/orgs","repos_url":"https://api.github.com/users/maierson/repos","events_url":"https://api.github.com/users/maierson/events{/privacy}","received_events_url":"https://api.github.com/users/maierson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-05T16:42:48Z","updated_at":"2016-10-08T19:45:54Z","closed_at":null,"body":"<!--\r\nThank you for raising your concerns, we appreciate your feedback and contributions to this repository.\r\n\r\nBefore you continue, consider the following:\r\n\r\nIf you have a \"How do I do ...?\" question, it is better for you and for us that this question is placed in [StackOverflow](http://stackoverflow.com/questions/tagged/rxjs5) or some chat channel. This way, you are making it easier for others to learn from your experiences too.\r\n\r\nThese \"Issues\" are meant only for technical problems, bugs, and proposals related to the library.\r\n\r\nIf your issue is a bug, please follow the format below:\r\n-->\r\n\r\nHi guys,\r\n\r\nI'm trying to do a simple ajax call and get a response but i get an answer with null response value.\r\n\r\n**RxJS version:**\r\n `\"rxjs\": \"^5.0.0-beta.12\"`\r\n\r\n**Code to reproduce:**\r\n\r\n```js\r\nimport { Observable } from 'rxjs/Observable';\r\nimport 'rxjs/add/observable/dom/ajax';\r\n\r\n Observable.ajax({\r\n        url: window.location.origin + \"/api/book/load\",\r\n        method: \"POST\",\r\n        responseType: \"json\",\r\n        body: {\r\n            key: \"userKey\",\r\n            sessionId: \"oisudofiu\"\r\n        },\r\n        headers: {\r\n            \"Accept\": \"application/json, text/plain, */*\",\r\n            \"cache-control\": \"no-cache\"\r\n        }\r\n    }).subscribe(\r\n        xhr => console.log(\"LOADED \", JSON.stringify(xhr, null, 2)),\r\n        error => console.log(\"ERROR \", JSON.stringify(error, null, 2)),\r\n        () => console.log(\"COMPLETE\"))\r\n```\r\n\r\n**Expected behavior:**\r\nGet a response with result information\r\n\r\n**Actual behavior:**\r\nMissing response information on Ajax response\r\n```json\r\n{\r\n  \"originalEvent\": {\r\n    \"isTrusted\": true\r\n  },\r\n  \"xhr\": {},\r\n  \"request\": {\r\n    \"async\": true,\r\n    \"crossDomain\": false,\r\n    \"withCredentials\": false,\r\n    \"headers\": {\r\n      \"Accept\": \"application/json, text/plain, */*\",\r\n      \"cache-control\": \"no-cache\",\r\n      \"X-Requested-With\": \"XMLHttpRequest\",\r\n      \"Content-Type\": \"application/x-www-form-urlencoded; charset=UTF-8\"\r\n    },\r\n    \"method\": \"POST\",\r\n    \"responseType\": \"json\",\r\n    \"timeout\": 0,\r\n    \"url\": \"http://localhost:8888/api/book/load\",\r\n    \"body\": \"key=userKey&sessionId=oisudofiu\"\r\n  },\r\n  \"status\": 200,\r\n  \"responseType\": \"json\",\r\n  \"response\": null\r\n}\r\n```\r\n\r\n**Additional information:**\r\nIf i make the same call with `axios` against the same (jersey) REST endpoint I get back the correct data. The endpoint is configured to ignore params and respond with \"Result of book loaded\" string.  Here is the axios response:\r\n\r\n```json\r\n{\r\n  \"data\": \"\\\"Result of book loaded\\\"\",\r\n  \"status\": 200,\r\n  \"statusText\": \"OK\",\r\n  \"headers\": {\r\n    \"date\": \"Wed, 05 Oct 2016 16:27:40 GMT\",\r\n    \"cache-control\": \"no-cache\",\r\n    \"expires\": \"Mon, 01 Jan 1990 00:00:00 GMT\",\r\n    \"server\": \"Development/1.0\",\r\n    \"content-length\": \"27\",\r\n    \"content-type\": \"application/json;charset=utf-8\"\r\n  },\r\n  \"config\": {\r\n    \"transformRequest\": {},\r\n    \"headers\": {\r\n      \"Accept\": \"application/json, text/plain, */*\",\r\n      \"Content-Type\": \"application/x-www-form-urlencoded\"\r\n    },\r\n    \"timeout\": 0,\r\n    \"xsrfCookieName\": \"XSRF-TOKEN\",\r\n    \"xsrfHeaderName\": \"X-XSRF-TOKEN\",\r\n    \"maxContentLength\": -1,\r\n    \"method\": \"post\",\r\n    \"baseURL\": \"http://localhost:8888/api\",\r\n    \"url\": \"http://localhost:8888/api/book/load\",\r\n    \"data\": \"key=user&sessionId=password\"\r\n  },\r\n  \"request\": {}\r\n}\r\n```\r\n\r\nThanks a lot for any help.\r\n\r\n(EDIT by @blesh to add code color formatting)"},"comment":{"url":"https://api.github.com/repos/ReactiveX/rxjs/issues/comments/252444426","html_url":"https://github.com/ReactiveX/rxjs/issues/2007#issuecomment-252444426","issue_url":"https://api.github.com/repos/ReactiveX/rxjs/issues/2007","id":252444426,"user":{"login":"blesh","id":1540597,"avatar_url":"https://avatars.githubusercontent.com/u/1540597?v=3","gravatar_id":"","url":"https://api.github.com/users/blesh","html_url":"https://github.com/blesh","followers_url":"https://api.github.com/users/blesh/followers","following_url":"https://api.github.com/users/blesh/following{/other_user}","gists_url":"https://api.github.com/users/blesh/gists{/gist_id}","starred_url":"https://api.github.com/users/blesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blesh/subscriptions","organizations_url":"https://api.github.com/users/blesh/orgs","repos_url":"https://api.github.com/users/blesh/repos","events_url":"https://api.github.com/users/blesh/events{/privacy}","received_events_url":"https://api.github.com/users/blesh/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T19:45:54Z","updated_at":"2016-10-08T19:45:54Z","body":"I see. This seems like something we can fix. I'll give it some thought."}}
{"actor":{"display_login":"blesh"}}