{"action":"closed","issue":{"url":"https://api.github.com/repos/joeherold/angular2-sails/issues/9","repository_url":"https://api.github.com/repos/joeherold/angular2-sails","labels_url":"https://api.github.com/repos/joeherold/angular2-sails/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/joeherold/angular2-sails/issues/9/comments","events_url":"https://api.github.com/repos/joeherold/angular2-sails/issues/9/events","html_url":"https://github.com/joeherold/angular2-sails/issues/9","id":201679365,"number":9,"title":"sailsService.connect(opts) throwing a error","user":{"login":"zoharsherman","id":5163350,"avatar_url":"https://avatars3.githubusercontent.com/u/5163350?v=3","gravatar_id":"","url":"https://api.github.com/users/zoharsherman","html_url":"https://github.com/zoharsherman","followers_url":"https://api.github.com/users/zoharsherman/followers","following_url":"https://api.github.com/users/zoharsherman/following{/other_user}","gists_url":"https://api.github.com/users/zoharsherman/gists{/gist_id}","starred_url":"https://api.github.com/users/zoharsherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoharsherman/subscriptions","organizations_url":"https://api.github.com/users/zoharsherman/orgs","repos_url":"https://api.github.com/users/zoharsherman/repos","events_url":"https://api.github.com/users/zoharsherman/events{/privacy}","received_events_url":"https://api.github.com/users/zoharsherman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-18T20:09:43Z","updated_at":"2017-03-06T00:53:13Z","closed_at":"2017-03-06T00:53:13Z","body":"when using:\r\nlet opts = {\r\n      url: SERVER_URL,\r\n      headers: {'Authorization':'JWT '+this.jwtToken},\r\n    }\r\n    this.sailsService.connect(opts);\r\n\r\ni am getting:\r\nEXCEPTION: Error in :0:0 caused by: undefined is not an object (evaluating 'this._serverUrl.length')\r\n\r\nwhen i use:\r\nthis.sailsService.connect(SERVER_URL, opts);\r\n\r\nthe opts are totally ignored.\r\nsee sails.service.ts line:93 is commented out\r\n     // this._opts = opts || {}"}}
{"actor":{"display_login":"joeherold"}}