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

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

Reply
gotters
Resolver I
Resolver I

Cant pass httpClientHandler to FabricClient

We currently use PowerBIClient from the SDK in our code to perform various operations. However we make sure to pass in our own httpClientHandler to avoid issues of socket exhaustion, like so...

var httpClientHandler = HttpClientFactory.GetHttpClientHandler();
return new PowerBIClient(new Uri(PbiBaseUrl), tokenCredentials, httpClientHandler)

We now have a need to use the FabricClient for a specific endpoint available there however it doesn't support passing in an httpClientHandler so we're stuck and concerned about how best to handle this.

 FabricClient(string token, Uri baseUrl = null)

 
Do we know if the FabricClient will be extended to support an httpClientHandler argument and if so, how soon?

Any other creative ideas in terms of handling this?

 

2 REPLIES 2
Anonymous
Not applicable

Hi  @gotters ,

 

This is the related document, you can view this content:

Injecting HttpClient into PowerBIClient - Microsoft Fabric Community

PowerBI-CSharp/sdk/PowerBI.Api/Extensions/PowerBIClientExtension.cs at master · microsoft/PowerBI-CS...

c# - How to pass HttpClientHandler to existing HttpClient? - Stack Overflow

 

Best Regards,

Liu Yang

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

Those are for PowerBiClient, do you know if they will work with the FabricClient which seems to have a different architecture

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors