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.

Uncaught DOMException: Failed to execute 'postMessage' on 'Window'

See original GitHub issue
  • could be related to #1871

I have afterware on my apollo client to handle errors in my app. In order to check the server’s response status I have to clone the response. It was working fine until suddenly (chrome update?) I started getting this message: DOMException: Failed to execute 'postMessage' on 'Window': Error: Network request failed with status 401 - "Unauthorized" could not be cloned. (the error is the response from the server).

To replicate, create an afterware that clones the response from the server.

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
jameswysecommented, Jul 11, 2017

Seems to be a problem with the apollo devtools. Had to disable the extension in chrome.

3reactions
jbaxleyiiicommented, Jul 17, 2017

@jazzdragon I’m going to close this and move it to the Apollo-devtools repo 👍 thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to execute 'postMessage' on 'Window': An object could ...
This happens all the time, if something can not be duplicated by the structured clone algorithm. This algorithm is used by window.postMessage ....
Read more >
DOMException: Failed to execute 'postMessage' on 'Window'
The error message seems to come from the getTokenFromServer() method. It looks like there is an unhandled exception coming from this method.
Read more >
Uncaught DOMException: Failed to execute 'postMessage' on ...
@tnrich So the reason this error is occurring is because the user is including non-serializable objects in their queries (or mutations), which ...
Read more >
Getting DOMException: Failed to execute 'postMessage' on ...
js:208 Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin 'null' in a call to 'postMessage'.
Read more >
Failed to execute 'postMessage' on 'Window': Invalid target ...
jQuery : Uncaught SyntaxError: Failed to execute ' postMessage' on 'Window ': Invalid target origin 'my_page' in a call to 'postMessage' ...
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