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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
whalecloud
New Member

Error: 401 Unauthorized: [no body]

I follow this document create java embed powerbi

https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=java#p... 

 

But Authorization was not successful

 

request message:

Error Details:

Error: 401 Unauthorized: [no body]

 

error line is the following code in com.embedsample.appownsdata.services.PowerBIService.java

ResponseEntity<String> response = getReportRestTemplate.exchange(endPointUrl, HttpMethod.GET, reqEntity, String.class);

 

I only filled in the parameter values in Config.java

 

Thanks for your help !

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @whalecloud,

How did you coding these scripts? Can you please share some more detail informations? 

How to Get Your Question Answered Quickly  

In addition, the error message seems related to the request, perhaps you can double check the 'body' to confirm if any issues in these parts.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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