Skip to main content
Filter by
Sorted by
Tagged with
5 votes
3 answers
148 views

I have an HttpClient built with IHttpClientFactory and Microsoft.Extensions.Http.Resilience retry on 401. Pipeline: Primary: HttpClientHandler (AllowAutoRedirect = false) Delegating: ....
Artyom Avetisyan's user avatar
2 votes
1 answer
204 views

I'm trying to increase my retry duration from the standard 10 seconds in my Blazor application, but the resilience handler doesn't seem to be working. I've tried both of the setups below but my Http ...
GH DevOps's user avatar
  • 512
1 vote
1 answer
337 views

I have a Blazor Server C# application in .NET 9 and I use a service to handle remote API calls. I would like to set timeout for requests globally like this: var timeoutSec = builder.Configuration....
SZL's user avatar
  • 897
1 vote
1 answer
65 views

I have a predefined IAsyncPolicy<HttpResponseMessage> policy coming from an external assembly. I want to apply this policy to a Http Client, BUT I want to exclude one of the cases this policy ...
Bogey's user avatar
  • 5,916
1 vote
1 answer
124 views

I am implementing Polly to retry SqlConnection errors. This is the logic I need to implement: 1st SqlException - retry after 10 seconds Total retrying time is 3 minutes After 1st retry, all other ...
Mit Jacob's user avatar
  • 195
1 vote
1 answer
164 views

How can I add a Polly retry policy to the AspNetCore.HealthChecks.Uris health check? This health check is part of this repo: https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks I see that I ...
handles's user avatar
  • 7,891
1 vote
0 answers
472 views

After upgrading my .NET 6 project to .NET 8, I am getting below errors on my windows build server while doing dotnet restore. I do not get these errors on my Windows 10 development machine: error ...
Mahesh Talreja's user avatar
1 vote
1 answer
1k views

I'm writing an application that connects to another HTTP service. I want to rate-limit my outgoing requests to that external service. Ideally, I want to use the standard resilience handler as ...
Daan's user avatar
  • 7,004
1 vote
1 answer
271 views

I have several named HttpClients in my C# application. I am binding Polly policies (namely the circuit breaker) to each of them. I need to capture which HttpClient tripped the circuit in the OnOpened ...
Lane Goolsby's user avatar
2 votes
1 answer
198 views

I use Polly to retry HTTP Requests. The following code works fine: IAsyncPolicy<HttpResponseMessage> waitTimeout = Policy.TimeoutAsync<HttpResponseMessage>(TimeSpan.FromSeconds(5)); // ...
Sergey's user avatar
  • 23
-1 votes
1 answer
111 views

I am using IhttpClientFactory to call rest service. Injecting it in the class and using it. public HttpClientLib(IHttpClientFactory clientFactory) { } And using to call. I have also created few ...
शेखर's user avatar
  • 17.6k
1 vote
1 answer
794 views

In C# I'm using Polly Version=8.4.1 and a reusable retry ResiliencePipeline via ResiliencePipelineBuilder. return new ResiliencePipelineBuilder() .AddRetry(new RetryStrategyOptions ...
rediVider's user avatar
  • 1,317
1 vote
1 answer
1k views

I read this 'Stream was already consumed' error using Polly to retry requests in ASP.NET Core but cannot see where to clone the http request message. So in my code, I register httpclient like: ...
Snake Eyes's user avatar
  • 16.8k
-1 votes
1 answer
72 views

HttpConsentCircuitBreakerPolicy = HttpPolicyExtensions .HandleTransientHttpError() .Or<TimeoutRejectedException>() .CircuitBreakerAsync(3,TimeSpan.FromSeconds(30), OnBreak, OnReset); ...
Elvis Skensberg's user avatar
2 votes
1 answer
2k views

developing a .Net8 application and currently having a need to perform http request retries when the connection ended prematurely (see ResponseEnded here)... I wonder if I can use resilience mechanism ...
Jacques Boivin's user avatar
0 votes
1 answer
314 views

I am using AddHttpClient and AddResilienceHandler to create and configure HttpClient in HostBuilder that will inject the httpclient in my other projects to handle specific http requests to different ...
Helic's user avatar
  • 949
4 votes
1 answer
3k views

I want to migrate from Polly to the Microsoft.Extensions.Http.Resilience AddStandardResilienceHandler. My shortened Polly code is the following: services.AddHttpClient<MyService>() ....
air duck's user avatar
  • 313
1 vote
1 answer
235 views

I am testing a Polly TimeOut policy public static IAsyncPolicy<HttpResponseMessage> GetTimeoutPolicy(int timeoutSeconds) { return Policy.TimeoutAsync<HttpResponseMessage>( ...
invernomuto's user avatar
  • 10.2k
0 votes
1 answer
39 views

When our retry code executes, it does a http post request passing in a parameter body. The parameter body has data in it during debugging. However, the http request content is blank, thus sending the ...
Thuy's user avatar
  • 1,691
1 vote
0 answers
285 views

I'd like to kindly ask for help with implementing retry strategy using Polly v8 in combination with Azure Service Bus and 3rd party API. Setup Messages are received from an ASB subscription. The ...
user25074311's user avatar
1 vote
1 answer
66 views

We have a set of connectors with external providers using REST APIs. We use HttpClient and Polly to make resilient queries to the endpoints. One of the providers is actually an intermediary between ...
ferarias's user avatar
  • 343
-1 votes
1 answer
599 views

I am using HTTPClient with WinHttpHanlder (for http/2) and my Polly retry policy looks something like this var waitAndRetry = Policy .HandleResult<HttpResponseMessage>(r => ...
Neel Tiwari's user avatar
1 vote
1 answer
1k views

I am using Polly v8 and .NET framework 4.7.2 to retry on specific status responses only. However, when trying to restrict the retry to only these statuses the code will no longer invoke the retry ...
Keiron's user avatar
  • 13
3 votes
1 answer
2k views

The C# project that I'm working on uses Polly (v8.3) for resiliency. The code looks very much similar to the sample found in the Github documentation : ResiliencePipeline pipeline = new ...
SimonAx's user avatar
  • 1,388
1 vote
1 answer
301 views

I have the following client app services .AddHttpClient<IOrderService, OrderService>(c => { c.BaseAddress = new Uri(Configuration["ApiSettings:xxx"]); }) ....
user22155685's user avatar

1
2 3 4 5
11