Error when trying to download embedded question

Hello! Long-time Metabase user, and absolutely love it! I checked the forums for help with this but haven’t been able to figure it out.

We have embedded several metabase questions in our app as iframes (non-premium embedding), but when someone tries to download the data (as a .csv, .xlsx, etc), the download fails with an error message: “Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (’’) does not match the recipient window’s origin (’’).”.

I’m assuming this is an issue with the settings on our app or how we’ve embedded the question, but haven’t been able to figure it out based on

Has anyone else run into this, and were you able to successfully troubleshoot?

Additional note:

  • There is some discussion on stackoverflow that this error sometimes gets thrown with iframes when the target origin is using https but the iframe url is using http; however, as far as I can tell, we are using https for both.

Hi @stg_will
Please post “Diagnostic Info” from Admin > Troubleshooting.
I’m fairly sure that the download doesn’t fail with that error, but that browser warning/error is just also present.
Check the log for errors during the download - Admin > Troubleshooting > Logs.

Edit: Sorry, should have clarified. The error seems to be on the console side (it comes up in the console of the dev tools in chrome). The API request seems to time out, and I don’t see any errors in the Logs on the metabase side.

I don’t think it is a bug, I think it is an issue with our settings or how we are embedding the iframe.

Here is the diagnostic log:
{
“browser-info”: {
“language”: “en-US”,
“platform”: “MacIntel”,
“userAgent”: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36”,
“vendor”: “Google Inc.”
},
“system-info”: {
“file.encoding”: “UTF-8”,
“java.runtime.name”: “OpenJDK Runtime Environment”,
“java.runtime.version”: “11.0.5+10”,
“java.vendor”: “AdoptOpenJDK”,
“java.vendor.url”: “https://adoptopenjdk.net/”,
“java.version”: “11.0.5”,
“java.vm.name”: “OpenJDK 64-Bit Server VM”,
“java.vm.version”: “11.0.5+10”,
“os.name”: “Linux”,
“os.version”: “4.14.171-105.231.amzn1.x86_64”,
“user.language”: “en”,
“user.timezone”: “GMT”
},
“metabase-info”: {
“databases”: [
“postgres”
],
“hosting-env”: “elastic-beanstalk”,
“application-database”: “postgres”,
“application-database-details”: {
“database”: {
“name”: “PostgreSQL”,
“version”: “11.5”
},
“jdbc-driver”: {
“name”: “PostgreSQL JDBC Driver”,
“version”: “42.2.8”
}
},
“run-mode”: “prod”,
“version”: {
“date”: “2020-04-10”,
“tag”: “v0.35.2”,
“branch”: “release-0.35.x”,
“hash”: “f3b2857”
},
“settings”: {
“report-timezone”: null
}
}
}

@stg_will Latest release is 0.36.6 - upgrade to that.
If there’s a timeout, then there’s a something in the log, so please post that.