Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

PowerBI embedded stops working when browser has certain languages added as default(en-GB-oxendict)

I have a react app that uses "embed content for organisation" model (and powerbi-client npm package) to embed reports in a web app. This has worked nicely since oct but all of sudden, this stopped working in Edge browser (tried incognito as well). I don't see any issue in Chrome. 

 

The DevTools console logs the following error thrown by reportEmbed (the iframe loading app.powerbi.com)

Refused to execute script from 'https://app.powerbi.com/ErrorPage?code=404' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

 

Looking at the Network tab, the issue might be caused by the following Get Request which is causing redirect to 404: 

- https://app.powerbi.com/13.0.17618.45/scripts/jquery.globalize/globalize.culture.en-GB-oxendict.js

[Status Code:302 => causing redirect to https://app.powerbi.com/ErrorPage?code=404]
 
Chrome seems to be doing things differently for the same web app:
Status: Accepted

Update:

Have you checked that this issue has been fixed or not since the fix should be deployed last week?

 

Best Regards,
Community Support Team _ Yingjie Li

Comments
unowiz
Regular Visitor

The issue seems to have resolved now. I did try the following two things but it might be as well that the issue has been resolved on the Power BI service side!

- From edge://settings/privacy, I've tried "Clear browsing data" and selected everything except saved passwords and time range as "All time". I think its unlikely the cause.

- From edge://settings/languages, removed "English (United Kingdom, Oxford English Dictionary spelling)". I've just left "English (United Kingdom)" and "English". I have no idea why PowerBI service would return a different js bundle to Edge and gave me grief today when I haven't changed this browser setting for ages. Most likely this might be the cause.

- Reboot. I've tried this many time today, I don't think the reboot resolved the issue.

 

I am very angry right now having wasted my evening try to troubleshoot or fix an issue that comes out of no where. Is Edge overdoing things or is it PowerBI service trying to be smart, I don't know!

v-yingjl
Community Support
Status changed to: Delivered

As far as I know there seems no known issues or changes for Power BI Service about this issue recently so it may be a temporary issue and be quick fixed, thanks for your understanding. 

 

In addition, if it still has the same issue in a long term, you can consider sharing more detailed error message about this issue like the version of broswer, whether it works in other browsers etc.

 

Best Regards,
Community Support Team _ Yingjie Li

dmarkham
Frequent Visitor

I still have this problem, with a production system.
Out customers are very upset

 

I've tried the privacy and the dictionary fix, but it has made no difference

 

Is there any known issue / fix / workaround / anything?

 

dmarkham_0-1644414750748.png

 

Thank you

unowiz
Regular Visitor

@dmarkham My issue was about Edge failing to load iframe when it was trying to load a non existent js bundle.

 

The screenshot you have posted is exactly what I saw during the issue. Switch to the network tab and look for any 404 and any redirects (301) immediatey before that.

The issue got resolved in my case after I removed the language. I'm still curious if others have had difficulties/uncertainties when using a PowerBI embedded based solution.

  1. Which browser are you using?
  2. What do you see when you type the following in the browser (open dev tools and in console prompt type below)

navigator.language

unowiz
Regular Visitor

And I'm able to reproduce the issue once I added back the language as top one

unowiz_1-1644416410675.png

unowiz_2-1644416460532.png

 

unowiz_0-1644416365069.png

 

dmarkham
Frequent Visitor

Fails in Edge and Chrome. Works in Firefox - we did get a period of different errors in Firefox that then resolved themselves

 

navigator.language
'en-GB'

 

and yes, redirects and a 404 error page - same as yours

dmarkham_0-1644416410288.png

 

dmarkham
Frequent Visitor

I've tried both orders on settings and it won't clear with either on top

 

dmarkham_0-1644416818239.png

 

unowiz
Regular Visitor

This isn't an issue specific to Edge. This happens in Chrome too once I add a language like Oxford english or something that is not very standard locale.

 

I think its for for the PowerBI team must review how they build/use https://github.com/globalizejs/globalize#locales

 

Workaround: In the browser, make sure non standard locales are not the top one

(screenshot from Chrome this time where I could reproduce and then resolve the issue)

unowiz_0-1644416982718.png

 

unowiz
Regular Visitor

There is pretty terrible caching....

unowiz_0-1644417162009.png

Clear it...

unowiz_1-1644417373494.png

 

unowiz
Regular Visitor

The issue only affects the embedded apps not the PowerBI service hosted reports!