Forum Discussion

project101's avatar
project101
Frequent Visitor
6 years ago

ERROR ON API CALLS TO EMBED REPORTS

By USING API > PowerBIClient  or OR WebRequest  with  C#

 

azurn token

the Azure.accessToken, i'm getting with out any error 

 

power bi token error

request.Headers.Add("Authorization", "Bearer " + vars.Azure.accessToken);

or var tokenCredentials = new TokenCredentials(vars.Azure.accessToken, "Bearer");

Error

ERROR   401 OR FILE NOT FOUND 

I HAVE POWER BI PRO AND AZURE FREE EDTION WITH ALL permission

maybe my free version on azure cause the problem !!

i need to get the secend token number base on azure token 

 

 

 

 

2 Replies

  • v-lid-msft's avatar
    v-lid-msft
    Community Support

    Hi project101 ,

     

    Could you please try to embed content using sample aplication based on this document to find if AAD application setting is working.

     

    Best regards,

    Community Support Team _ Dong Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • v-lid-msft's avatar
    v-lid-msft
    Community Support

    Hi project101 ,

     

    How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?

     

    Best regards,

    Community Support Team _ Dong Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.