{"action":"created","issue":{"url":"https://api.github.com/repos/atomjack/dubtrackapi/issues/8","labels_url":"https://api.github.com/repos/atomjack/dubtrackapi/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/atomjack/dubtrackapi/issues/8/comments","events_url":"https://api.github.com/repos/atomjack/dubtrackapi/issues/8/events","html_url":"https://github.com/atomjack/dubtrackapi/issues/8","id":109814625,"number":8,"title":"Cannot connect with newest version of API","user":{"login":"ImGrumpy","id":6717444,"avatar_url":"https://avatars.githubusercontent.com/u/6717444?v=3","gravatar_id":"","url":"https://api.github.com/users/ImGrumpy","html_url":"https://github.com/ImGrumpy","followers_url":"https://api.github.com/users/ImGrumpy/followers","following_url":"https://api.github.com/users/ImGrumpy/following{/other_user}","gists_url":"https://api.github.com/users/ImGrumpy/gists{/gist_id}","starred_url":"https://api.github.com/users/ImGrumpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImGrumpy/subscriptions","organizations_url":"https://api.github.com/users/ImGrumpy/orgs","repos_url":"https://api.github.com/users/ImGrumpy/repos","events_url":"https://api.github.com/users/ImGrumpy/events{/privacy}","received_events_url":"https://api.github.com/users/ImGrumpy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-05T14:54:48Z","updated_at":"2015-10-05T16:27:04Z","closed_at":null,"body":"When trying to connect using the cookie, I get:\r\n\r\n```\r\nTypeError: Uncaught, unspecified \"error\" event.\r\n    at TypeError (<anonymous>)\r\n    at DubtrackAPI.emit (events.js:74:15)\r\n    at C:\\bots\\lilbuddy (dubtrack)\\node_modules\\dubtrackapi\\index.js:157:16\r\n```\r\n\r\nWith email/password creds instead, I get:\r\n\r\n```\r\nTypeError: Cannot read property 'state' of null\r\n    at C:\\bots\\lilbuddy (dubtrack)\\node_modules\\dubtrackapi\\index.js:81:20\r\n```\r\n\r\nOld version of the API connects and logs like it's working fine - it sees events - but doesn't respond to chat.  Sort of feels like it's in guest mode, but not sure.  Tried updating the cookie creds with no luck."},"comment":{"url":"https://api.github.com/repos/atomjack/dubtrackapi/issues/comments/145590975","html_url":"https://github.com/atomjack/dubtrackapi/issues/8#issuecomment-145590975","issue_url":"https://api.github.com/repos/atomjack/dubtrackapi/issues/8","id":145590975,"user":{"login":"atomjack","id":114672,"avatar_url":"https://avatars.githubusercontent.com/u/114672?v=3","gravatar_id":"","url":"https://api.github.com/users/atomjack","html_url":"https://github.com/atomjack","followers_url":"https://api.github.com/users/atomjack/followers","following_url":"https://api.github.com/users/atomjack/following{/other_user}","gists_url":"https://api.github.com/users/atomjack/gists{/gist_id}","starred_url":"https://api.github.com/users/atomjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atomjack/subscriptions","organizations_url":"https://api.github.com/users/atomjack/orgs","repos_url":"https://api.github.com/users/atomjack/repos","events_url":"https://api.github.com/users/atomjack/events{/privacy}","received_events_url":"https://api.github.com/users/atomjack/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T16:27:04Z","updated_at":"2015-10-05T16:27:04Z","body":"For the unspecified \"error\" event error, make sure your bot is responding to the error event:\r\n\r\n```\r\nbot.on('error', function(msg, trace) {\r\n\r\n});\r\n```\r\n\r\nI'll have to do some research to figure out why that is required.\r\n\r\nAnd I'll have to do some more work on the user/password login, I thought I had that working."}}