{"action":"created","issue":{"url":"https://api.github.com/repos/Schmavery/facebook-chat-api/issues/100","labels_url":"https://api.github.com/repos/Schmavery/facebook-chat-api/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/Schmavery/facebook-chat-api/issues/100/comments","events_url":"https://api.github.com/repos/Schmavery/facebook-chat-api/issues/100/events","html_url":"https://github.com/Schmavery/facebook-chat-api/issues/100","id":116885688,"number":100,"title":"Crash when connected to facebook group","user":{"login":"mrkno","id":6830312,"avatar_url":"https://avatars.githubusercontent.com/u/6830312?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkno","html_url":"https://github.com/mrkno","followers_url":"https://api.github.com/users/mrkno/followers","following_url":"https://api.github.com/users/mrkno/following{/other_user}","gists_url":"https://api.github.com/users/mrkno/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkno/subscriptions","organizations_url":"https://api.github.com/users/mrkno/orgs","repos_url":"https://api.github.com/users/mrkno/repos","events_url":"https://api.github.com/users/mrkno/events{/privacy}","received_events_url":"https://api.github.com/users/mrkno/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Schmavery/facebook-chat-api/labels/unconfirmed","name":"unconfirmed","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-14T01:34:06Z","updated_at":"2015-11-19T18:57:15Z","closed_at":null,"body":"This issue is copied from https://github.com/mrkno/Kassy/issues/34. It only seems to occur on >v1.0.2 as far as our limited testing can determine. I tested internationalisation and it didn't seem to have any difficulties but given time constraints testing was not extensive.\r\n\r\n<hr>\r\n\r\nso it is working fine , when i am using it in personal chat , but when i add the profile that is on the bot , the script crashes and gives me this error:\r\n\r\nERR! ERROR in listen --> TypeError: Cannot call method 'toString' of undefined\r\nERR! ERROR in listen --> at Object.formatTyp (/home/kawaii/Kassy/node_modules/facebook-chat-api/utils.js:294:24)\r\nERR! ERROR in listen --> at parsePackets (/home/kawaii/Kassy/node_modules/facebook-chat-api/src/listen.js:97:42)\r\nERR! ERROR in listen --> at Array.forEach (native)\r\nERR! ERROR in listen --> at /home/kawaii/Kassy/node_modules/facebook-chat-api/src/listen.js:86:12\r\nERR! ERROR in listen --> at tryCatcher (/home/kawaii/Kassy/node_modules/facebook-chat-api/node_modules/bluebird/js/main/util.js:26:23)\r\nERR! ERROR in listen --> at Promise._settlePromiseFromHandler (/home/kawaii/Kassy/node_modules/facebook-chat-api/node_modules/bluebird/js/main/promise.js:507:31)\r\nERR! ERROR in listen --> at Promise._settlePromiseAt (/home/kawaii/Kassy/node_modules/facebook-chat-api/node_modules/bluebird/js/main/promise.js:581:18)\r\nERR! ERROR in listen --> at Promise._settlePromises (/home/kawaii/Kassy/node_modules/facebook-chat-api/node_modules/bluebird/js/main/promise.js:697:14)\r\nERR! ERROR in listen --> at Async._drainQueue (/home/kawaii/Kassy/node_modules/facebook-chat-api/node_modules/bluebird/js/main/async.js:123:16)\r\nERR! ERROR in listen --> at Async._drainQueues (/home/kawaii/Kassy/node_modules/facebook-chat-api/node_modules/bluebird/js/main/async.js:133:10)\r\nERR! ERROR in listen --> at Async.drainQueues (/home/kawaii/Kassy/node_modules/facebook-chat-api/node_modules/bluebird/js/main/async.js:15:14)\r\nERR! ERROR in listen --> at process._tickCallback (node.js:415:13)\r\nERR! ERROR in listen --> [TypeError: Cannot call method 'toString' of undefined]\r\n[TypeError: Cannot call method 'toString' of undefined]\r\n\r\nOverall a great program/script here, but i'm mostly going to use if for a group chats , if you can fix it i would love it <3 . And i should add that some of the names of the people in the chat room are in Bulgarian, that uses diffrent alphabet than the english one. There are hole diffrrent."},"comment":{"url":"https://api.github.com/repos/Schmavery/facebook-chat-api/issues/comments/158156129","html_url":"https://github.com/Schmavery/facebook-chat-api/issues/100#issuecomment-158156129","issue_url":"https://api.github.com/repos/Schmavery/facebook-chat-api/issues/100","id":158156129,"user":{"login":"bsansouci","id":4534692,"avatar_url":"https://avatars.githubusercontent.com/u/4534692?v=3","gravatar_id":"","url":"https://api.github.com/users/bsansouci","html_url":"https://github.com/bsansouci","followers_url":"https://api.github.com/users/bsansouci/followers","following_url":"https://api.github.com/users/bsansouci/following{/other_user}","gists_url":"https://api.github.com/users/bsansouci/gists{/gist_id}","starred_url":"https://api.github.com/users/bsansouci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsansouci/subscriptions","organizations_url":"https://api.github.com/users/bsansouci/orgs","repos_url":"https://api.github.com/users/bsansouci/repos","events_url":"https://api.github.com/users/bsansouci/events{/privacy}","received_events_url":"https://api.github.com/users/bsansouci/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T18:57:15Z","updated_at":"2015-11-19T18:57:15Z","body":"I think they only rolled out the update to part of the population. It's `event.to` on my end and I childishly assumed it would be the same everywhere. I agree with this fix."}}