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.

Reply
Anonymous
Not applicable

Error with reportEmbed.min.js

Hello,

 

I'm working on embedding PowerBI reports in Salesforce. Currently, the embedding is working in one Salesforce environment, but breaks in another. The code in both instances is the same and was created while following this blog post: https://powerbi.microsoft.com/en-us/blog/embedding-a-power-bi-report-into-salesforce/

 

Browser Console Errors:

wabi-west-us-redirect.analysis.windows.net/metadata/cluster:1 Failed to load resource: the server responded with a status of 403 (Forbidden)



reportEmbed.min.js:1 Unhandled Promise rejection: Object ; Zone: <root> ; Task: XMLHttpRequest.addEventListener:readystatechange ; Value: Object undefined

 

 

 

 

When using Fiddler to inspect what is happening, I noticed a poorly formed HTTPS request:

 

GET https://wabi-west-us-redirect.analysis.windows.net/metadata/cluster HTTP/1.1
Host: wabi-west-us-redirect.analysis.windows.net
Connection: keep-alive
Accept: application/json
Origin: https://app.powerbi.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Authorization: undefinedeyJ0e.........

When it should be:

 

GET https://wabi-west-us-redirect.analysis.windows.net/metadata/cluster HTTP/1.1
Host: wabi-west-us-redirect.analysis.windows.net
Connection: keep-alive
Accept: application/json, text/plain, */*
RequestId: e5a7c278-eb32-d0a3-e7af-6b301ebd1146
Origin: https://app.powerbi.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Authorization: Bearer eyJ0e........

 

 

 When tracing the error through Chrome Dev Tools, I found that the broken request comes from this function in reportEmbed.min.js (Approx. Line 18686):

 

           Zone.__load_patch("ZoneAwarePromise", function(t, r, o) {
                var i = o.symbol,
                    a = [],
                    s = i("Promise"),
                    u = i("then");
                o.onUnhandledError = function(t) {
                    if (o.showUncaughtError()) {
                        var e = t && t.rejection;
                        e ? console.error("Unhandled Promise rejection:", e instanceof Error ? e.message : e, "; Zone:", t.zone.name, "; Task:", t.task && t.task.source, "; Value:", e, e instanceof Error ? e.stack : void 0) : console.error(t)
                    }
 

 I'm not sure why the HTTPS request would be properly formed in one deployment, but not the other if the code is the same. From my understanding, I don't have any access to reportEmbed.min.js in terms of modifying its behavior.

 

Any information is appreciated and please let me know if you need more details.

 

Thank you.

 

 

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.