Forum Discussion
Critical: Cannot load embedded report (403) GET [...]us-east2-redirect.analysis.windows.net/[...]
- 10 years ago
How are you authenticating your call. The 403 error means that you don't have valid access. What does your access token look like?
Anonymous
Don't blame you at all, I've spoken to a lot of senior devs and basically on here as a last ditch effort.
How are you authenticating your call. The 403 error means that you don't have valid access. What does your access token look like?
- amikell10 years ago
Helper I
public ActionResult ---(string crmId) { Client client = Client.GetByCRMId(crmId); ViewData["ClientId"] = client != null ? client.Id.ToString() : "NONE"; //AccessToken = embedToken.Generate("---") var devToken = PowerBIToken.CreateDevToken("---", "---"); var jwt = devToken.Generate("---"); var credentials = new TokenCredentials(jwt, "AppToken"); var BIclient = new PowerBIClient(credentials) { BaseUri = new Uri("https://api.powerbi.com") }; using (var powerBIClient = BIclient) { var embedToken = PowerBIToken.CreateReportEmbedToken("---", "---", "---"); var AccessToken = embedToken.Generate("---"); ViewData["EmbedToken"]=AccessToken; return View(); } } - jocaplan-MSFT10 years ago
Microsoft Employee
Can you please double check that the Workspace collection name and workspace ID are correct for the report that you are trying to embed? Also, please grab the request ID off of the response header from the failed message.
- amikell10 years ago
Helper I
requestid: b54972d1-eddb-5524-d983-c01004d7d03a
only 1 workspace collection, tried all workspace IDs in addition to the first (3 total)
- jocaplan-MSFT10 years ago
Microsoft Employee
Looks like you are using "Bearer" in your authorization header. You should be passing this as "AppToken".
- amikell10 years ago
Helper I
I could not figure out how to generate the proper access token from the PowerBI libraries... I pass (jwt, "AppToken") but still get the "Bearer" header.
I went back to the C#-based example solution and generated another access token, hard coded it into the Javascript solution. Working for now unless token expires (?). Will work on ways to incorporate that logic into my application.
"Bearer" actually remained in the authorization header. It seems there is a bit of ambiguity when it comes to retrieving an access token with a PowerBI Javascript embed report solution.
- vivek_jain9 years ago
Advocate II
Hi ,
I am also getting this error.
GET https://wabi-us-north-central-redirect.analysis.windows.net/metadata/cluster 403 (Forbidden)
Trying to embedd powerbi in our web application (Java , javscript based)
Using powerbi-client v2.3.1 in javascript side to embed a sample report in my application.
Can someone please help , we are stuck , report is not getting embedded (page says "This content isn't available.
Learn more about powerbi.") - vivek_jain9 years ago
Advocate II
Hi ,
I am also getting this error.
GET https://wabi-us-north-central-redirect.analysis.windows.net/metadata/cluster 403 (Forbidden)
Trying to embedd powerbi in our web application (Java , javscript based)
Using powerbi-client v2.3.1 in javascript side to embed a sample report in my application.
Can someone please help , we are stuck , report is not getting embedded (page says "This content isn't available.
Learn more about powerbi.") - Anonymous7 years agoNot applicable
Hi
I am getting the same error on https://wabi-north-europe-redirect.analysis.windows.net/powerbi/metadata/refreshusermetadata
Have you found any solution ?
Please share. Thank you
- Anonymous6 years agoNot applicable
I get a similar error when trying to open a report using the Microsoft Power BI Embedded Playground, despite having access to the report when using the EmbedURL.
Has anyone been able to identify what is causing this error.