microsoft / powerbi-jupyter

A Custom Jupyter Widget Library for Power BI
MIT License
470 stars 151 forks source link

Uncaught DataCloneError: Failed to execute 'postMessage' on 'Window': CustomEvent object could not be cloned. #56

Closed genloz closed 1 week ago

genloz commented 3 months ago

Hi Team! Just wondering if you have any thoughts on this challenge.

My customer has followed the tutorial here: https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/powerbi-jupyter and they are seeing an error when they embed the report, though once the screen is refreshes it embeds successfully (Uncaught DataCloneError: Failed to execute 'postMessage' on 'Window': CustomEvent object could not be cloned)

They are injecting javascript to refresh the screen, but once the screen is refreshed and the report is embedded when they invoke any of the functions report.get_pages(), report.visuals_on_page(pagename) or report.export_visual_data(page_name, visual_name) it does not return any result and function continues to run for long time. They need to manually interrupt the execution and rerun again to get the results. These functions are not returning the results consistently.

Advice appreciated, thank you!

v-MadhavC commented 3 months ago

We have tried using the functions, but we did not encounter any such error. The functions executed as expected, returning results without any delays.

Could you provide the specific code you're using to embed the Power BI report and invoke these functions? Also, does the issue reproduce on the sample code provided in the demo?

genloz commented 3 months ago

Please see embed code below image (3)

genloz commented 2 months ago

@v-MadhavC I've had a few people mention to me that they're facing the same issue just FYI

v-MadhavC commented 1 month ago

It seems like you are setting the access token using the set_access_token() method after initializing the report object. Could you please clarify how you are generating the access token? image

ayeshurun commented 1 week ago

We haven't received any feedback for a while.

Please continue to share your feedback and get support through these channels:

Thank you, The Power BI Embedded Team