Programming techniques designed to retry operations that failed due to error codes, exceptions, or other language specific means.
Questions tagged [retry-logic]
377 questions
0
votes
1 answer
Clarification Update - .Net Core Web API Retries
Does anyone know if in .NET CORE it is possible to have server middleware which would repeat the request based on the response from the original request.
Is it possible in the outgoing response to send in another request?
[Update Clarification] -…

rideintothesun
- 1,628
- 2
- 12
- 29
0
votes
1 answer
Why is take(1) used at the end of a retryWhen timer?
I'm looking reading from RW book.
.retryWhen { errors in
return errors.enumerated().flatMap { (attempt, error) -> Observable in
if attempt >= maxAttempts - 1 {
return Observable.error(error)
}
return…

mfaani
- 33,269
- 19
- 164
- 293
0
votes
2 answers
retry request of data
(novice Python programmer at best here..)
I use a module to access a building automation system called BAC0. The script creates a building automation device out of my Windows laptop when it is ran to communicate BACnet to the building automation…

bbartling
- 3,288
- 9
- 43
- 88
0
votes
1 answer
Retry logic for https.get in node.js
Is there a way to implement retries for https.get method in node.js using async-retry.

CodeForLife
- 1
- 2
0
votes
1 answer
Increasing retries in AWS Lambda
I had a few questions about AWS lambdas and I couldn't find much details in the documentation
How can I increase the number of retries in AWS Lambda?
In case the maximum number of retries have occurred and whole Lambda has failed how can I get…

Venkat Dabri
- 31
- 2
- 6
0
votes
1 answer
Polling an API endpoint - how do I retry when no JSON is returned?
I'm polling an API endpoint using a while loop that checks for whether or not a .get() method on the JSON returns None:
while requests.get(render_execution_url, headers=headers).json().get('finalized_at') is None:
status =…

snark17
- 349
- 6
- 15
0
votes
0 answers
How to invoke retry decorator on Exception error for Python
I'm using the retry module to handle exceptions. When I call f.write, this can return RateLimitException with error codes 400-500. I just need to retry on code 401, how can I achieve this? (I currently don't have access to that library) I can read…

gogasca
- 9,283
- 6
- 80
- 125
0
votes
0 answers
WebException not caught when connection times out
I'm trying to catch WebException with certain Status inside IsTransient method, but it never catches the following error:
System.Net.WebException: Unable to read data from the transport connection: Connection timed out. ---> System.IO.IOException:…

bigb055
- 198
- 3
- 14
0
votes
2 answers
Retry after rehydrating token with polly
We're using the latest Polly to handle our retry and circuit breaker policies for interacting with three APIs.
Basic flow is:
A) Read data from Product Catalogue (API)
B) Get Unique Merchant Token (API)
C) Update Merchant Catalogue (with new item)…

Lisa Anna
- 87
- 1
- 9
0
votes
1 answer
Progress Dialog not showing on .Show() in Async method
I have async method ExecuteWithRetryAsync which implements some retry logic and must show ProgressDialog as soon as it is called. Currently the first call to Show() never really works. The progress dialog shows only after the AlertDialog is…

bigb055
- 198
- 3
- 14
0
votes
0 answers
Calculating delay with exponential backoff
I'm writing my own retry logic with exponential backoff based on Microsoft's sample code on following page:…

bigb055
- 198
- 3
- 14
0
votes
0 answers
Best way to implement retry logic with a duration in c#
I tried to create a retry logic that has a time limit lets say 6 seconds with a retry count of 6 times (including the first try) and if a retry is failed before 1sec , it will sleep for the rest of the second and try the request in the next second…

Sachin
- 2,627
- 1
- 19
- 35
0
votes
1 answer
Custom retry in Reactor
I was trying to implement a retry logic in Kotlin and Reactor based on the Reactor extra package's features. What I'm trying to do is pass a list of durations, and on each context.iteration I'm getting the (iteration-1)th element of the list. It…

Peter
- 323
- 1
- 16
- 46
0
votes
1 answer
Timeout and Retry-Backoff mechanisms in msgraph-sdk-java
I have recently started using msgraph-sdk for java for creating a syncing service for oneDrive users, files etc.
I want to make few calls via batching like getting permissions info for multiple files.
Does the sdk support batched calls. If yes, can…

crucifix94
- 193
- 2
- 14
0
votes
1 answer
Polly show dialog after retry count reached
I'm using Polly to retry web service calls in case the call fails with WebException, because I want to make sure the method executed correctly before proceeding. However sometimes web methods still throw exception even after retrying several times…

bigb055
- 198
- 3
- 14