Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I follow this document create java embed powerbi
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 !
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |