Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48640

powerBI embedded : embeding report using javascript API

$
0
0

Hi 

 

We have uploaded .pbix reports to workspaces on azure

We are generating a accesskey at run time and passing the values in a JSON format to PowerBI Angular SDK

 

But when the API tries to load the report it gets the following error

 

https://wabi-south-east-asia-redirect.analysis.windows.net/metadata/cluster 401 (Unauthorized)

 

Our Azure account is in South Central US  

 

Any help would be appreciated

 

 

we are sending all the values back from our .NET MVC controller to our HTML page as show below

var embedConfiguration = {
    type:'report',
    accessToken:'eyJ0eXAiO...Qron7qYpY9MI',
    id:'5dac7a4a-4452-46b3-99f6-a25915e0fe55',
    embedUrl:'https://embedded.powerbi.com/appTokenReportEmbed'
};var $reportContainer =$('#reportContainer');var report =powerbi.embed($reportContainer.get(0), embedConfiguration);

Viewing all articles
Browse latest Browse all 48640

Trending Articles