Handling retries using StaticJsonRpcProvider
#2541
Unanswered
yuripramos
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create one UI to display the health of a list of RPC nodes in my application and certain nodes fail in the first request and after a new retry fetches correctly.
Reading almost all the issues and the documentation I was unable to find some answer to a few questions that I still have, unfortunately.
1 - How many default retries do we have to run this snippet of code for instance:
2 - According this image I got one failing request for xDai rpc (
https://rpc.xdaichain.com/)
but the second attempt was 200. I want to intercept this failing request to create one flag in my application to display to the user the request failed once but without the retries values I struggling to find the best solutionIf somebody have some guidance for these questions I appreciate
Beta Was this translation helpful? Give feedback.
All reactions