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.

Problem in gmail.js or in gmail-chrome-extension-boilerplate

See original GitHub issue

I took project from gmail-chrome-extension-boilerplate. Replaced gmail.js from this repository (as suggested) and replaced jquery from this repository version (first I tried with original one, the same result).

After adding extension in my Chrome I’ve got errors:

The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', use waitUntil() or respondWith() to wait for the promise to settle. The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', use waitUntil() or respondWith() to wait for the promise to settle. The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', use waitUntil() or respondWith() to wait for the promise to settle. The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', use waitUntil() or respondWith() to wait for the promise to settle. The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', use waitUntil() or respondWith() to wait for the promise to settle. The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', use waitUntil() or respondWith() to wait for the promise to settle. /mail/u/0/#inbox:1 [DOM] Found 2 elements with non-unique id #null: (More info: https://goo.gl/9p2vKq) <form id=​"null" action=​"?ui=html&zy=s" method=​"post">​…​</form>​ <form id=​"null" action=​"?ui=html&zy=d" method=​"post">​…​</form>​ m=a:1332 Deprecated API for given entry type. Wvd.activate @ m=a:1332 VM50:5 Hello, albert.lyubarsky@gmail.com (index):94 Uncaught (in promise) Error: E at Hd.i ((index):94) at m=a:1208 at (index):136 at d (m=b:1094) DevTools failed to load SourceMap: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/include.postload.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME m=b:1094 Uncaught a8a {message: "Error in protected function: xa6jdv2", cause: Error: xa6jdv2 at https://mail.google.com/mail/u/0/:86:44 at d (https://mail.google.com/m…, stack: "Error: xa6jdv2↵ at https://mail.google.com/ma…)↵ at https://mail.google.com/mail/u/0/:86:432"} d @ m=b:1094 setTimeout (async) d.<computed> @ m=b:1095 WIa @ m=b:268 Mp.IZa @ m=b:1104 (anonymous) @ m=b:280 Gp.wa @ m=b:271 Promise.then (async) Gp.ha @ m=b:271 Gp @ m=b:271 lJa @ m=b:279 Mp.lH @ m=b:278 Mp.Znd @ m=b:278 l @ m=b:279 m=b:1094 Uncaught a8a {message: "Error in protected function: xVWNrn2", cause: Error: xVWNrn2 at https://mail.google.com/mail/u/0/:86:44 at d (https://mail.google.com/m…, stack: "Error: xVWNrn2↵ at https://mail.google.com/ma…)↵ at https://mail.google.com/mail/u/0/:86:432"} d @ m=b:1094 setTimeout (async) d.<computed> @ m=b:1095 WIa @ m=b:268 Mp.IZa @ m=b:1104 (anonymous) @ m=b:280 Gp.wa @ m=b:271 Promise.then (async) Gp.ha @ m=b:271 Gp @ m=b:271 lJa @ m=b:279 Mp.lH @ m=b:278 Mp.Znd @ m=b:278 l @ m=b:279 m=b:1094 Uncaught a8a {message: "Error in protected function: xCl6csf2", cause: Error: xCl6csf2 at https://mail.google.com/mail/u/0/:86:44 at d (https://mail.google.com/…, stack: "Error: xCl6csf`2↵ at https://mail.google.com/m…)↵ at https://mail.google.com/mail/u/0/:86:432"} d @ m=b:1094 setTimeout (async) d.<computed> @ m=b:1095 WIa @ m=b:268 Mp.IZa @ m=b:1104 (anonymous) @ m=b:280 Gp.wa @ m=b:271 Promise.then (async) Gp.ha @ m=b:271 Gp @ m=b:271 lJa @ m=b:279 Mp.lH @ m=b:278 Mp.Znd @ m=b:278 l @ m=b:279 m=b:1094 Uncaught a8a {message: “Error in protected function: Cannot read property ‘style’ of null”, cause: TypeError: Cannot read property ‘style’ of null at onLoadTimeout (https://mail.google.com/mail/…, stack: “TypeError: Cannot read property ‘style’ of null↵ …=AHGWq9CKXlQ4uQ1DUkFM-I0jqul9KV0ZDg/m=b:1094:137)”} d @ m=b:1094 setTimeout (async) d.<computed> @ m=b:1095 onLoadTimeout @ (index):123

` What’s going on ? Plz, help. mail.google.com-1589779942244.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Fabi1Sccommented, May 18, 2020

Hey, i look at your project. I think you could look at https://github.com/josteink/gmailjs-node-boilerplate to have a better implementation.

0reactions
josteinkcommented, May 18, 2020

Oh. You used the OLD boilerplate?

That’s unfortunately obsolete and deprecated now and no longer supported.

Using the repo suggested above should work though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gmail.observe.on NOT working · Issue #411 - GitHub
Fixed this by using the https://github.com/KartikTalwar/gmail-chrome-extension-boilerplate loader method. Now Gmail.js is executing after ...
Read more >
Gmail Extension, sendMessage to background from page ...
So now, I need to get back to some of the functionality of the extension. Under normal conditions (operating from a content script),...
Read more >
gmail-js - npm
JavaScript API for Gmail (useful for chrome extensions). Latest version: 1.1.4, last published: 5 days ago. Start using gmail-js in your ...
Read more >
File types blocked in Gmail - Google Support
File types blocked in Gmail. There are a number of reasons why you may see the "This message was blocked because its content...
Read more >
JavaScript quickstart | Gmail - Google Developers
Create a JavaScript command-line application that makes requests to the Gmail API. Objectives. Set up your environment. Set up the sample. Run the...
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