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
ddevogel
Frequent Visitor

403 trying to embed report using Javascript sample

Anybody ...? I don't even need an answer ... I'd just take a suggestion on what to look at next ...

 

 

Hi All,

 

I'm just tyring to use the static embed sample from the PowerBI-JavaScript GitHub demo and I'm getting the Chrome console errors below. I feel like I've looked at everything and am at a loss for where to turn next. The token I've generated and signed with my AppKey is valid according to jwt.io (deidentified below) and I've verified all the details about the report I'm after via the PowerBI REST Apis. Can anyone offer any advice? Is there somewhere that report access debug detail gets captured that could help me track down the somewhat cryptic console errors I'm getting? Thanks!

 

Dave

 

{
"wid": "my workspace id",
"rid": "my report id",
"wcn": "my workspace collection",
"iss": "my domain",
"ver": "0.2.0",
"aud": "https://analysis.windows.net/powerbi/api",
"exp": 1473326501,
"username": "user@email.com",
"roles": ["user"]

embedErr.png

 

3 REPLIES 3
KumarDarmesh
Helper IV
Helper IV

A similar error here, any solution?

Hi Kumar,

 

Yes, I swapped out my token generator for a Microsoft implementation and found that I was base64 encoding my signing key one too many times. I fixed my generator and was able to get the JS sample to work. Hope this helps.

 

Dave

Hi, would you care about sharing the details? This same error is all over the web without an answer and the error message is really bad. 

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.