KartikTalwar / gmail.js

Gmail JavaScript API
MIT License
3.74k stars 455 forks source link

TypeError: fd_emails is not iterable #702

Open cancan101 opened 2 years ago

cancan101 commented 2 years ago

Seeing the following warning in the console:

Gmail.js encountered an error trying to parse email-data on fd request! TypeError: fd_emails is not iterable

and that is printed by: https://github.com/KartikTalwar/gmail.js/blob/e43e5f625cc6cdecf122d7981af23280da84da3e/src/gmail.js#L1411 which was called by: https://github.com/KartikTalwar/gmail.js/blob/e43e5f625cc6cdecf122d7981af23280da84da3e/src/gmail.js#L2070

josteink commented 2 years ago

Hey there and thanks for the bug-report.

I've looked into this and I can't reproduce it myself. Are you using GMail in any particular way? Do you have any particular Inbox settings?

The best would be if we could find a way to systematically reproduce this for everyone, because that would make fixing, code-review and verification easier afterwards.

For now, if just you can reproduce this, maybe you can attach a breakpoint when this happens, to see what fd_emails actually contains?