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

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.

Reply
Anonymous
Not applicable

Rest API as source does not work in service

I have a report with a Rest API source from a website, which refreshes fine in Power BI Desktop, but gives an error in the service. 

The result is json.

 

This is my code:

Mirjam_Bleumink_0-1604494036472.png

The error given in the service is "The downloaded data is HTML, which isn't the expected type. The URL may be wrong or you might not have provided the right credentials to the server. "

 

Mirjam_Bleumink_1-1604494118842.png

 

I have set up my credentials on the server as Anonymous.

Mirjam_Bleumink_2-1604494195457.png

 

I have tried with both the skip test connection on and off, both don't work. 

 

What do I need to change?

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @Anonymous 

If the API is returning HTML then it could be a 401, 403 or 404 error message. Or perhaps a firewall is blocking the request.

The username and password are definitely correct?

Has the Token expired?

You could try using Postman to issue the requests and see what is being returned.

Regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors