daily-co/daily-js

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

Galera-Co opened this issue · 2 comments

Expected behavior

Daily prebuilt widget loaded

Describe the bug (unexpected behavior)

On all versions higher than 0.40.0 receiving
"DOMException: Failed to execute 'postMessage' on 'Window': # could not be cloned."

Also on more fresh versions also receiving:
"Failed to execute 'postMessage' on 'DOMWindow': The target origin provided does not match the recipient window's origin

Steps to reproduce

Load the widget via standard:
this.callFrame = DailyIframe.createFrame(callWrapper, {
showLeaveButton: true,
showFullscreenButton: true
})

Hi! Thanks for the report. For some reason I am unable to reproduce the error you describe, but typically when we see this error it's because the code is not being run with a server (most commonly when running a local file in a browser with file://. If this is what's happening, you simply need to serve up your folder with a basic server while testing. If not, please provide more information like what browser/OS, when you see the error (on join()? or immediately?), and a copy of your console logs.

Thank you!

Actually, apologies, I just saw specifically the # could not be cloned. This means somewhere we're trying to send something that can not be serializable to JSON. Can you let me know what daily call is triggering this error and what parameters you are passing in?

Thank you!