{"action":"created","issue":{"url":"https://api.github.com/repos/Mordred/aurelia-sails-socket-client/issues/5","labels_url":"https://api.github.com/repos/Mordred/aurelia-sails-socket-client/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Mordred/aurelia-sails-socket-client/issues/5/comments","events_url":"https://api.github.com/repos/Mordred/aurelia-sails-socket-client/issues/5/events","html_url":"https://github.com/Mordred/aurelia-sails-socket-client/issues/5","id":124296253,"number":5,"title":"Post message isn't picking up url but picking base url","user":{"login":"rahulravindran0108","id":3462752,"avatar_url":"https://avatars.githubusercontent.com/u/3462752?v=3","gravatar_id":"","url":"https://api.github.com/users/rahulravindran0108","html_url":"https://github.com/rahulravindran0108","followers_url":"https://api.github.com/users/rahulravindran0108/followers","following_url":"https://api.github.com/users/rahulravindran0108/following{/other_user}","gists_url":"https://api.github.com/users/rahulravindran0108/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulravindran0108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulravindran0108/subscriptions","organizations_url":"https://api.github.com/users/rahulravindran0108/orgs","repos_url":"https://api.github.com/users/rahulravindran0108/repos","events_url":"https://api.github.com/users/rahulravindran0108/events{/privacy}","received_events_url":"https://api.github.com/users/rahulravindran0108/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-30T02:47:51Z","updated_at":"2015-12-30T19:38:12Z","closed_at":"2015-12-30T19:38:12Z","body":"This is my code for the backend:\r\n```\r\nthis.sails.post(\"/login\", credentials)\r\n      .then((response) => alert(\"Success login\"))\r\n      .catch((response) => alert(\"Wrong credentialsssss!!\"));\r\n```\r\n\r\nGetting the following error on js console. Even if I am sending a post the socket message reads as get and the ur; is not being picked up.\r\n\r\n```\r\nSocketRequestMessage {method: \"get\", url: \"/csrfToken\", content: undefined, headers: Headers, baseUrl: \"http://localhost:1337\"…}\r\nbaseUrl: \"http://localhost:1337\"\r\ncontent: undefined\r\nheaders: Headers\r\ninterceptors: Array[2]\r\nmethod: \"get\"\r\noptions: (...)\r\nurl: \"/csrfToken\"\r\n__proto__: SocketRequestMessage\r\nconstructor: SocketRequestMessage(method, url, content, headers)\r\noptions: (...)\r\nget options: ()\r\n__proto__: Object\r\n```"},"comment":{"url":"https://api.github.com/repos/Mordred/aurelia-sails-socket-client/issues/comments/168061796","html_url":"https://github.com/Mordred/aurelia-sails-socket-client/issues/5#issuecomment-168061796","issue_url":"https://api.github.com/repos/Mordred/aurelia-sails-socket-client/issues/5","id":168061796,"user":{"login":"rahulravindran0108","id":3462752,"avatar_url":"https://avatars.githubusercontent.com/u/3462752?v=3","gravatar_id":"","url":"https://api.github.com/users/rahulravindran0108","html_url":"https://github.com/rahulravindran0108","followers_url":"https://api.github.com/users/rahulravindran0108/followers","following_url":"https://api.github.com/users/rahulravindran0108/following{/other_user}","gists_url":"https://api.github.com/users/rahulravindran0108/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulravindran0108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulravindran0108/subscriptions","organizations_url":"https://api.github.com/users/rahulravindran0108/orgs","repos_url":"https://api.github.com/users/rahulravindran0108/repos","events_url":"https://api.github.com/users/rahulravindran0108/events{/privacy}","received_events_url":"https://api.github.com/users/rahulravindran0108/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T19:38:12Z","updated_at":"2015-12-30T19:38:12Z","body":"Yes, its working now. Closing it. Thank you very much for solving."}}