Questions tagged [retrywhen]
59 questions
0
votes
1 answer
com.chaquo.python.PyException: ConnectionError: HTTPSConnectionPool(host='www.flipkart.com', port=443): Max retries exceeded with url
When I install a python programe in android mobile via android studio.Following error appears and my app crashes.
com.chaquo.python.PyException: ConnectionError: HTTPSConnectionPool(host='www.flipkart.com',
port=443): Max retries exceeded with url:…
0
votes
0 answers
best way to use "retrywhen" in angular to print success response
My requirement is pretty simple. I need to wait for a particular rest api() call to give success status code
Once that particular rest api is successful, I need to perfom some other action.
My restapi will give positive status only after some…
0
votes
2 answers
How to properly handle errors using retryWhen in rxjs
I need to retry a specific API call for about three times when there is a 502 bad gateway error. The retry may happen with slightly incremental delays. This is the code in the component.
some.component.ts
someMethod() {
let attempt = 0;
…

sorak
- 3
- 4
0
votes
1 answer
RXJS: How to get connect event? retrywhen: how to hook into execution?
When Angular tries to connect, I want to show "Connecting". I can do it on first connect, but I don't know how to do it when using retryWhen(). I need to hook into the actual execution and then do:
this.connectionStatus = "Connecting"
Current…

NoobieNoob
- 887
- 2
- 11
- 31
0
votes
1 answer
RxJava retryWhen retry the whole method that returns a completable
I'm trying to revalidate a token every time the API responds with invalid token error (Re-authentication). I have this small example which replicates the problem i'm facing. Basically, the first call will throw an exception, which will trigger a…

Serge
- 143
- 1
- 7
0
votes
2 answers
Angular8 HttpInterceptor return value
I have a basic HttpInterceptor in which I am using the rxjs retryWhen in order to retry a certain number of times if there are service failures. If the service call has reached the maximum retry amount then I would like to feed this back to the…

BWG
- 304
- 3
- 15
0
votes
0 answers
How to subscribe to a subject from Utils method
I've implemented the 2nd example from this - it works flawlessly and will re-fire the method if it sees a 503.
My goal is to now display a warning message on the front-end when a retry happens on the first go. However the method sits in the utils…

Jason Fung
- 69
- 10
0
votes
2 answers
How to retry code 5 times with 5 seconds space between each attempt
I have some code which checks for data coming from Stripe's Webhook. Now I got some code that queries my database to check if the payment has been confirmed. I am trying to write a function that checks my database to see if the payment has been…

Phillip
- 295
- 1
- 3
- 12
0
votes
1 answer
rxjs 5.5+ retryWhen not calling source observable?
I feel like I'm missing something really simple here. I'm trying to create a simple retry for fetch but only the code in the retryWhen is getting executed. I'm using React so i dont have the this.http.get convenience. Perhaps it's an issue with…

LukeP
- 1,505
- 1
- 16
- 25
0
votes
1 answer
Retry connection when it takes too long
Is it possible in Angular to retry a connection when the calls stays for more then a couple of seconds on pending?

Hans
- 287
- 1
- 5
- 18
0
votes
0 answers
How to refresh parameters of a observable inside retrywhen
I`m trying to implement a autoLogin function with retry when and need to change the parameters of the previous observable after the auto login is done.
So i created a function
class TestClass(): Function, Flowable<*>> {
…

Gibran Lyra
- 21
- 4
0
votes
1 answer
How to test RetryWhen
I have a test for my retryWhen block. It works properly when tested using the emulator. I also have a test that checks that retry passes. However, sometimes my test fail. I tried using Scheduler.immediate. However, this also makes the test fail.…

Android Ninja
- 811
- 1
- 6
- 9
0
votes
0 answers
angular2 Observable.throw doesn't work after Observable.timer
I'm trying to do a retrywhen on a http.get for X-times when communication fails.
After the X-times I would like to throw an error that it failed to connect.
If I only do in my DelayWhen an Observable.throw it directly works fine and returns on the…

MARL
- 41
- 1
- 4
-1
votes
1 answer
AsyncPipe not updating properly
I am currently experimenting with the Angular AsyncPipe in combination with ngIf. The observable in production comes from the HttpService, it is extended with a retry strategie for error handling.
The template looks like this:

kkla320
- 1
- 1