Schmavery / facebook-chat-api

Unofficial Facebook Chat API for Nodejs
MIT License
1.93k stars 596 forks source link

Can't retrieve ThreadList - Can't read property 'error_results' of undefined #679

Open vucod opened 6 years ago

vucod commented 6 years ago

I can't retrieve ThreadList due to a TypeError in src/getThreadList.js:195

Any ideas about this bug ?

ERR! getThreadList TypeError: Cannot read property 'error_results' of undefined
ERR! getThreadList     at defaultFuncs.post.then.then (/home/lambda/facebook-chat-api/src/getThreadList.js:195:41)
ERR! getThreadList     at tryCatcher (/home/lambda/Applications/Facebridge/FacebookBot/node_modules/bluebird/js/main/util.js:26:23)
...
vucod commented 6 years ago

I think that it is linked to the recurring error #202. It occurs after sometimes and it works flawlessly when I restart the bot. I also get the 1357004 error just before getting the TypeError.

I keep it open as the #202 error is still closed

ermay12 commented 5 years ago

Hi was this issue ever resolved? I am also getting "Cannot read property 'error_results' of undefined" when i call this function. Restarting the bot doesn't fix it as mentioned above.