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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Embedded giving 404 errors for missing source map files

Hello,

 

I'm using the powerbi-client to embed reports in a web application and some of the JS files loaded by the embed iframe declare they have a corresponding source map file, but the file is not found and the browser logs a 404 error.

 

These are the JS files and their missing source maps:

 

JS file (200 OK):
https://app.powerbi.com/13.0.8621.157/scripts/ai.0.js

Source map declaration:
Line 2392: //# sourceMappingURL=ai.0.js.map

 

Map file (404 Error):

https://app.powerbi.com/13.0.8621.157/scripts/ai.0.js.map

 

JS file (200 OK):

https://app.powerbi.com/13.0.8621.157/scripts/powerbiportal.dependencies.externals.bundle.min.js

Source map declaration:
Line 35307: //# sourceMappingURL=interact.min.js.map

 

Source map file (404 Error)

https://app.powerbi.com/13.0.8621.157/scripts/interact.min.js.map

 

It's possible to add those map files, or remove the source map declarations?

Status: Needs Info
Comments
v-jiascu-msft
Employee

Hi @matoso,

 

That seems a fake message only in Firefox. Firstly, the files are loaded. Please refer to the snapshot below. Secondly, no such error message in Chrome. 

 

Embedded giving 404 errors for missing source map files.png

 

 

 

 

 

 

 

 

 

Do you have any issues in the embedded reports?

 

Best Regards,

Dale

v-jiascu-msft
Employee
Status changed to: Needs Info
 
matoso
Regular Visitor

Hi, Dale. Thanks for the response.

 

I forgot to mention the problem only occurs in Safari browser (v 12.0.3). The JS files are loaded, but it fails to load corresponding .map files.

 

It doesn't affect the report rendering.

 

Thanks,

v-jiascu-msft
Employee

Hi @matoso,

 

After digging into the .map file related contents, I found it's a developer tool. It won't harm anything. I also found an example. Please refer to the snapshot below and the links below.

https://blog.teamtreehouse.com/introduction-source-maps

https://stackoverflow.com/questions/21719562/javascript-map-files-javascript-source-maps

https://stackoverflow.com/questions/27196117/why-using-jquery-map/27196201#27196201

Embedded-giving-404-errors-for-missing-source-map-files2

 

Please understand that this link is provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.

 

Best Regards,

Dale