question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failure to read property GLOBALS when using gmail.dom.email(obj) in a threaded message

See original GitHub issue

We’ve got an app that surfaces information in gmail’s web-ui based on the to:/from: or a keyword in the body.

Over the past two months, I’ve watched it start to fail on threaded messages. The failures did not seem to coincide with changes in our tool, or changes in this repo’s gmail.js. I assume it was changes in gmail.

Our tool still works fine on single emails, but fails if there is more than one email in the thread.

the failure shows as:

gmail.js:674 api.dom.email called with invalid element/id
VM4905:239 Uncaught TypeError: Cannot read property 'includes' of undefined
    at <anonymous>:239:30
    at Array.forEach (<anonymous>)
    at <anonymous>:238:23

the full failure is in this gist.

For quite some time, I was able to solve it by merging in the changes from @hitbits ’ PR titled Fix issues for api.get.visible_emails

I’m not the one who built this tool, and if there’s someone out there who’d rather get paid to fix this for us (and submit any needed changes to this repo) I’d be open to hearing from you.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
josteinkcommented, Mar 27, 2018

Great. I’ll consider the issue solved then. Closing!

1reaction
evgostcommented, Mar 27, 2018

@josteink That did the trick. Thank you for the help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to cause sent emails to appear threaded in GMail ...
The answer to why they are not threaded in Gmail is because Gmail's threading is done according to the subject of the messages...
Read more >
Check if your Gmail message is authenticated - Google Support
Fix messages that aren't authenticated​​ If a message you get from a trusted source isn't authenticated, contact the person or company who sent...
Read more >
Precondition check failed error using Gmail API v1 | Digital ...
I get the following error to use gmail.users.messages.list or gmail.users.messages.read.Internal : Unexpected error Error during We.
Read more >
Class GmailThread | Apps Script - Google Developers
Creates a draft message replying to the sender of the last message in this thread using the reply-to address, with optional arguments. The...
Read more >
Tips for Working in the Gmail Integration with Inbox
To disable the prompt, select Log Email on Send in the integration pane, and deselect the Always remind me to log option at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found