cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ddevogel Frequent Visitor
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

Re: 403 trying to embed report using Javascript sample

A similar error here, any solution?

ddevogel Frequent Visitor
Frequent Visitor

Re: 403 trying to embed report using Javascript sample

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

Ernesto Frequent Visitor
Frequent Visitor

Re: 403 trying to embed report using Javascript sample

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.