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.

401 Unauthorized with powerbiembedded

Hello Everyone, 

 

I am trying to add report via Power BI Embedded and getting the following error. Let me know what I am doing wrong.

 

(GET https://wabi-india-west-redirect.analysis.windows.net/metadata/cluster 401 (Unauthorized))

 

  1. Request Method:GET
  2. Status Code:401 Unauthorized 

 

Thanks in advance!!!

Status: Needs Info
Comments
ganeshm
Frequent Visitor

Hello, 

 

I am trying to add report via Power BI Embedded and getting the following error. Let me know what I am doing wrong.

 

(GET https://wabi-india-west-redirect.analysis.windows.net/metadata/cluster 401 (Unauthorized))

 

  1. Request Method:GET
  2. Status Code:401 Unauthorized 

 

Thanks in advance!!!

ganeshm
Frequent Visitor

Is there any update on this issue? 

v-haibl-msft
Employee

@ganeshm

 

How did you embed the report, which document did you follow? I can embed Power BI report properly on my side.

 

Best Regards,

Herbert

Vicky_Song
Impactful Individual
Status changed to: Needs Info
 
ganeshm
Frequent Visitor

@v-haibl-msft

 

I followed the steps from this link https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-iframe

 

 

I created a workspace collection, added a worksapce and pushed the report(.pbix file) to that workspace and then generated the access-token as mentioned in that above link.

 

 

 

 

 

varund29
Frequent Visitor
tringuyenminh92
Memorable Member

Hi @ganeshm,

 

Did you check your token expiration? Cause as default, after 15 minutes the token will be expired.

You could check your token working with sample: https://microsoft.github.io/PowerBI-JavaScript/demo/code-demo/index.html

 

(For extending longer expiration, you could specify it in c# code)