Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |