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:
- Created 6 years ago
- Reactions:4
- Comments:11 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems to be a problem with the apollo devtools. Had to disable the extension in chrome.
@jazzdragon I’m going to close this and move it to the Apollo-devtools repo 👍 thanks!