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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.