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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
DMB90
Helper I
Helper I

Error Message on Power BI Desktop: Web.Contents failed to get contents from _____ (502): Bad Gateway

One of my API links is causing a Power BI error when loading and says the following: 

 

Web.Contents failed to get contents from [url] (502): Bad Gateway

 

When I downloaded the file, I noticed it's over 55,000 KB. Is there a way to resolve this? Will I potentially have to just download this data daily in order for the data to load properly? I'm not able to remove any of the data as it's critical.

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @DMB90 

The issue isn't with Power BI itself, but rather with the data source you're trying to access.

A 502 Bad Gateway typically indicates a problem on the source server’s side – for example, it may be overloaded or rejecting the request due to size or rate limits. Since you mentioned the file is over 55 MB, it’s possible that the API or server has limitations on request size or timeout thresholds.

If you can’t filter or reduce the data in Power BI, I recommend reaching out to the support team of the data provider to clarify:

  • Are there any known limits on download size or request frequency?

  • Is there a recommended way to paginate or query partial data?

  • What’s the best way to handle large datasets through their API?

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @DMB90 

The issue isn't with Power BI itself, but rather with the data source you're trying to access.

A 502 Bad Gateway typically indicates a problem on the source server’s side – for example, it may be overloaded or rejecting the request due to size or rate limits. Since you mentioned the file is over 55 MB, it’s possible that the API or server has limitations on request size or timeout thresholds.

If you can’t filter or reduce the data in Power BI, I recommend reaching out to the support team of the data provider to clarify:

  • Are there any known limits on download size or request frequency?

  • Is there a recommended way to paginate or query partial data?

  • What’s the best way to handle large datasets through their API?

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Thank you. I have reached out to the source support team.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors
Top Kudoed Authors