Peter Emilsson
Peter Emilsson
Another possible workaround is: ``` app.UseWhen(context => HttpMethods.IsGet(context.Request.Method), builder => { builder.UseSpa(spa => { }); }); ``` This will only run the SpaMiddleware for Get requests, letting all other request...
Yes, I am using a typed client with polly for retries.
Simplified I use the following. The httpclient is injected using the pattern on https://docs.microsoft.com/sv-se/aspnet/core/fundamentals/http-requests?view=aspnetcore-2.1 ```c# var request = new HttpRequestMessage { Method = method, RequestUri = new Uri(apiPath, UriKind.Relative), Content...
I have not been able to reproduce it "manually" yet. I apologize if this issue is a duplicate. My main question is if this exception always indicate an error in...
I have been troubleshooting this for quite some time. After discussion with the Azure support, one possible cause is resource exhaustion on the Azure Webapp. The main reason I created...
@stephentoub, is that only per HttpClient object (I have multiple services using typed HttpClients that connects to the same domain)? What happens if the MaxConnectionsPerServer is hit? At the moment...
@paulandrewc, our problem was with SNAT port exhaustion. The "resolution" we had to implement was to limit the number of concurrent outbound requests to the same ip/domain. ```c# services.AddHttpClient("name").ConfigurePrimaryHttpMessageHandler(() =>...
@HansOlavS I closed it because the errors we had went away as soon as we changed our code to limit number of connections as described in https://github.com/dotnet/runtime/issues/28205#issuecomment-650946712. **Example code:** ```c#...
@JamesNK, Is this planned for 5.0? Just to maybe add another use case when this will be useful. When running on Azure Services that use a shared load balancer (for...
Thanks for the answer! Apart from your linked SO question I also looked at https://stackoverflow.com/a/52053084. According to that answer the bulkhead policy is good to use when trying to throttle,...