Skip to main content
Question

DOMException: Failed to execute 'postMessage' on 'Window': Response object could not be cloned.

  • September 16, 2021
  • 2 replies
  • 8900 views

When using `Editable boards for not registered users`, when I click on “Create Board”, I am getting an alert message saying “miro.com says Something went wrong” and in my console I get 2 errors


`DOMException: Failed to execute 'postMessage' on 'Window': Response object could not be cloned.`
`Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'Window': Response object could not be cloned.`

 

It works fine for users that have already registered with Miro. I have attached the necessary screenshots below.

Error when clicking on “Create Board”
Code for opening the board picker

 

 

 

2 replies

Anthony Roux
Mironeer
Forum|alt.badge.img+1
  • Mironeer
  • 215 replies
  • September 20, 2021

Hi @Gaurav Yadav,

 

The error message seems to come from the getTokenFromServer() method. It looks like there is an unhandled exception coming from this method.

 

Could you try to just return a string in getTokenFromServer() to confirm it comes from there?


  • Author
  • New Here
  • 1 reply
  • September 20, 2021

Hi @Anthony Roux,

I tried sending a string and it is working fine. It is indeed an unhandled exception. I spent a lot of time figuring out the problem because of this unhandled exception. Please look into this.

 

Regards,

Gaurav Yadav