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.

Chrome: Uncaught (in promise)

See original GitHub issue

Tested in:

  • Latest Chrome (stable)
  • Latest Chromium
  • Latest Firefox Developer Edition

I made a little something using html2canvas (stevenliebregt.github.io/html2png). I use html2canvas to create a png of the preview window. Locally this works great, but when hosted on GitHub Pages, the image is cut of at the bottom and the console gives me an Uncaught (in promise) without any further info.

It does work fine hosted on GitHub Pages on Firefox Developer Edition though.

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
LasithaPrabodhacommented, Dec 26, 2017

There should be a catch handler in the promise call in line 166 in Clone.js.

this.resourceLoader.cache[iframeKey] = getIframeDocumentElement(node, this.options).then(function (documentElement) {

Fixed it by adding it. @niklasvh @StevenLiebregt

0reactions
sebastiendancommented, Apr 10, 2018

@LasithaPrabodha 's solution works for me as well. Is there any chance to push a new tag with the fix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why I get this Uncaught (in promise) on Chrome?
Why I get this Uncaught (in promise) on Chrome? · check your code where you are expecting promise resolves. try chaining those using...
Read more >
uncaught (in promise) errors in Chrome Console
Hello,. I'm seeing a bunch of uncaught (in promise) errors on this page, with the message: {message: 'A listener indicated an asynchronous response...
Read more >
Chrome logs 'Uncaught (in promise) TypeError' on load #403
Chrome dev (49.0.2623.23) logs an error to console when loading es6-shim. The error seems to come from the promiseResolveBroken test: var ...
Read more >
chrome.tabs.sendMessage throw error - Google Groups
The message that I see is: "Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.” Is this on purpose...
Read more >
chrome.scripting - Chrome Developers
Injects a script into a target context. The script will be run at document_idle . If the script evaluates to a promise, 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