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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
chsowald
Employee
Employee

HttpClient Retry via PowerBiClient

Hi.  I'm using Polly to easily enable HttpClient retries for transient errors.  This is easy when using the standard HttpClient.  I'm getting PowerBI embed tokens on my backend, but don't see a way to enable Polly retries for the PowerBiClient as I can't pass it an HttpClient, though it appears to use one internally.

 

Is there a way to override the default HttpClient when creating the PowerBiClient or can you add one?  Sadly, I can even get (but not set) the HttpClient on the PowerBiClient.  So close!

 

https://github.com/Microsoft/PowerBI-CSharp/blob/master/sdk/PowerBI.Api/Source/V2/PowerBIClient.cs

0 REPLIES 0

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors