punkjj / FB-AutoReply

Automatically replies to incoming messages on Facebook. Uses python library, FBChat.
https://punkjj.cf
GNU General Public License v3.0
5 stars 9 forks source link

FBchatException: Could not fetch thread 83503671: {u'message_thread': None} #1

Open mattyicer opened 5 years ago

mattyicer commented 5 years ago

When running this with python2.7 and having installed FBchat, I was able to login in successfully, however when someone messages me, i get this error:

Traceback (most recent call last):
  File "/Users/username/Library/Python/2.7/lib/python/site-packages/fbchat/client.py", line 2278, in _parseMessage
    thread_id=thread_id, thread_type=thread_type, ts=ts, metadata=metadata, msg=m)
  File "test.py", line 10, in onMessage
    toggle = client.fetchThreadMessages(thread_id=client.uid, limit=1) # client.uid means its our own acc
  File "/Users/username/Library/Python/2.7/lib/python/site-packages/fbchat/client.py", line 845, in fetchThreadMessages
    raise FBchatException('Could not fetch thread {}: {}'.format(thread_id, j))
FBchatException: Could not fetch thread 63593071: {u'message_thread': None}
JANCOKRAIMUBAWOK commented 2 years ago

IndexError: list index out of range