The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi all, I'm trying embed report on my Website. But sometimes iframe stucks on loading sometimes is working.
Below is my config :
var configR_desktop = { type: 'report', tokenType: models.TokenType.Embed, accessToken: TokenReport, embedUrl: UrlReport, id: embedReportdId, pageName: 'ReportSection', settings: { filterPaneEnabled: false, navContentPaneEnabled: false, localeSettings: { language: "en" }, background: models.BackgroundType.Transparent } };
And I need to refresh the website until embedded report working,
Everybody knows What's wrong with that? I would appreciate.:)
Solved! Go to Solution.
I fixed this problem. It's async problem.
In this case, Web got token from the server using socket.io. But sometimes Web cannot get Token immediately to set config because of a slow network.
Hi @bboy81905,
1. If it's possible the token expires, how did you get token?
2. Were there any error messages in the browser console?
Your config looks good.
Best Regards,
Dale
Thank for your reply @v-jiascu-msft
I fixed this problem. It's async problem.
In this case, Web got token from the server using socket.io. But sometimes Web cannot get Token immediately to set config because of a slow network.
That's great. Thanks for sharing.
Best Regards,
Dale
Hi -
We're also trying to achieve the embed using JavaScript but somehow it is not working.
Can you please share your full JavaScript code with config? Didn't it require to generate a new token when it expires?
Much appreciated.
Thank you