retry-logic Questions

3

I just upgraded to AWS SDK V3 and I have no idea how to configure retryDelayOptions and customBackoff with it. I couldn't find any example code in AWS's own API reference or online. This is what I ...

1

I have a test: @ParameterizedTest @MethodSource("getTestData") fun fooTest( arg1: Int, arg2: Int, arg3: String, ) { ... It communicates with quite unstable test container (I can't m...
Jase asked 21/2 at 16:11

2

Solved

I have the following: from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry retry_strategy = Retry( total=3, status_forcelist=[429, 500, 502, 503, 504]...
Amyl asked 5/3, 2021 at 18:17

3

I'm try setting up a IHttpClientFactory, and i'd like to know how to send it parameters when it is created, those parameters i need to assign to retry policy. I'm using .Net Core 2.2 and Microsoft....
Cracker asked 2/4, 2019 at 18:25

4

Solved

I'm working with a very flaky API. Sometimes I get 500 Server Error with Timeout, some other time I also get 500 Server Error because I gave it input that it can't handle SqlDateTime overflow. Mus...
Twoply asked 13/6, 2018 at 11:23

2

Solved

I have a couple of questions around similar concern: I'm making a call to EmailServer and using Polly Policy to WaitAndRetry. But I would like the Retry to happen only for specific timeouts: 5xx an...
Inhere asked 3/4, 2020 at 19:19

2

Solved

How to execute multiple policies (or combine them into a single one)? For example I have: var policy1 = Policy.Handle<DivideByZeroException>().WaitAndRetry(5)); var policy2 = Policy.Handle&l...
Armadillo asked 7/2, 2017 at 15:25

1

Solved

We're using the Dropbox API wrapped in Polly to handle retries. We have it set up as an exponential back-off, like explained here. The issue we have is that we make plenty of concurrent calls. When...
Furrier asked 18/7, 2022 at 15:0

2

I'm trying to get my head around Polly rate-limit policy. public class RateLimiter { private readonly AsyncRateLimitPolicy _throttlingPolicy; private readonly Action<string> _rateLimi...
Inez asked 6/7, 2022 at 22:11

2

I'm trying to set up Polly in .Net Core 3.1 (Azure Functions v3). I want to create a Policy in the Startup class which I can inject into functions. The behaviour that I'm looking for is: It sh...
Foray asked 15/6, 2020 at 5:21

2

Solved

I'm using Polly in very basic scenario to do exponential backoff if an HTTP call fails: protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationT...
Umpire asked 26/6, 2019 at 9:15

1

I want to retry a curl connection in my C++ program for 5 times. When it fails 5 times in a row, it should stop the execution of the program. However, it stops after the first error at this point. ...
Baynebridge asked 7/5, 2017 at 10:15

1

Solved

I've created a retry policy on my HttpClient in the Startup.ConfigureServices method. Note also that by default, asp.net core 2.1 logs 4 [Information] lines for each call made by the HttpClient whi...
Ransell asked 28/10, 2021 at 6:20

5

Solved

Some time ago, I was in need of a retry function in R to handle slow servers response. The function would have the following behavior : (try an action (function or method), and if it fails, w...
Jemie asked 1/3, 2017 at 1:15

0

I am using NEST to perform queries towards an Elasticsearch 6-cluster. The Elasticsearch cluster consists of a couple of nodes, but it's running behind a firewall/loadbalancer so from the client pe...
Alfi asked 21/9, 2021 at 12:22

1

Solved

Problem stmt : I have a service which fetches result from graphql sometime due to server issue the service might throw 500 error Solution: To resolve the above issue I needed to write a retry logic...
Rundle asked 26/7, 2021 at 15:54

2

Solved

I have a hystrix command that encapsulates a REST call. In case of failure(e.g. timeout), I want to make a single retry and return an appropriate error if it still fails. As I can see, Hystrix does...
Mohammedanism asked 20/10, 2017 at 11:12

2

Solved

how to implement retry logic using polly to retry executing a function forever with some delay but handle no exception. the scenario is to get status information repeatedly but there is no expected...
Tuque asked 14/8, 2018 at 19:48

1

An HttpRequestMessage object can only be used one time; future attempts to use the same object throw an exception. I'm using Polly to retry some requests and I'm hitting this issue. I know how I ca...
Skit asked 24/5, 2018 at 20:0

1

I have been trying to find an answer for this one and could not find any. There are many techniques where we can implement retry in OkHttp with retrofit and also configure it As per the document ht...
Favus asked 25/3, 2021 at 12:8

1

Is there a way in Polly to retry all exceptions apart from those which are specified.. for example: var p = Policy .Handle<HttpListenerException>(e => !(e.NativeErrorCode == 1)) .Or<...
Currant asked 20/6, 2018 at 12:47

3

I just read about Polly library and I need to handle 3 retries when communicating from a desktop agent to a server. Currently I like the exponential backoff. However, I struggle to understand how t...
Scholarship asked 15/7, 2020 at 11:15

4

Solved

Every time I'm restarting mysql service, my app is receiving the following error on any query: result = self._query(query) File "/usr/local/lib/python3.6/site-packages/pymysql/cursors.py", line 3...
Jarrell asked 13/11, 2018 at 18:16

2

Solved

I want to implement a custom http.Transport for standard http.Client, which will retry automatically if the client got timeout. P.S. for some reason, the custom http.Transport is a must-have. I've ...
Lithotomy asked 14/7, 2020 at 17:11

2

Anyone have any idea on why the policy below stop retry after 3 times instead of 10 ? IAsyncPolicy<HttpResponseMessage> httpWaitAndRetryPolicy = Policy.HandleResult<HttpResponseMessage&gt...
Stomato asked 9/7, 2020 at 1:58

© 2022 - 2024 — McMap. All rights reserved.