Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

getThreadHistory.js ERR! getThreadHistoryGraphQL TypeError: Cannot read property 'id' of null #859

Open
diginatrium opened this issue Jan 4, 2021 · 0 comments

Comments

@diginatrium
Copy link

First of all, I'm sorry if this is the incorrect way to report it.

Based on https://github.com/Schmavery/facebook-chat-api/pull/661

I'd recommend making the following change:

line 374 of getThreadHistory.js could use a similar fix of:
packID: d.sticker.pack.id, to packID: d.sticker.pack != null ? d.sticker.pack.id : '',
otherwise "ERR! getThreadHistoryGraphQL TypeError: Cannot read property 'id' of null" gets thrown when getting a history of several chats.

The edit alleviated the problem at least for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant