Forum Discussion
PowerBI Embedded report stuck on loading sometimes
- 8 years ago
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. :smileyhappy:
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
- First, I think it's impossible the token expires. Because website will get token when the server starting, the server will use Power BI REST APIs to generate Token. In this case, the iframe of an embedded report will present the correct report but sometimes will keep loading. And then I refresh website, the report shows up again, but sometimes also stuck on loading. It's very wired.
- Second, the iframe of an embedded report stuck on loading, there is no error in the browser console!!
- bboy819058 years agoFrequent Visitor
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. :smileyhappy:
- v-jiascu-msft8 years agoMicrosoft Employee
That's great. Thanks for sharing.
Best Regards,
Dale
- mittalpatel1306 years agoHelper III
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