Fix: Polly HttpClientFactory Retry Not Working

Published: May 17, 2026 · By Kumar Kunal

The Error

No retries:

Single request only

Quick Fix - 1 Min

1. services.AddHttpClient<MyClient>().AddPolicyHandler(GetRetryPolicy()). 2. Policy: HttpPolicyExtensions.HandleTransientHttpError().WaitAndRetryAsync(3, i => TimeSpan.FromSeconds(Math.Pow(2,i))). 3. Order: AddPolicyHandler before AddTypedClient. 4. Check exception type: HttpRequestException only.

Root Cause

Policy not registered or handles wrong exception. Only transient errors retry.

Found this helpful?

Master C# with our complete course. Real apps, real skills, job-ready in 2 hours.

Share this fix: Twitter LinkedIn

Comments on Fix: Polly HttpClientFactory Retry Not Working (0)

No comments yet. Be the first to share your thoughts!