-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Option for turning off HTTPRequestRetry
#2770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You can just remove it and add your own. See the docs here |
I've tried to do this, but it doesn't work. Even Code:
Even if there are error responses... ... the code continues to run: Furthermore, if I try:
I get this error: Indeed, |
This could be due to the fact that the HTTPRequestRetry middleware is added by default to the Web3 instance when it's created, and it is not possible to remove it by using w3.middleware_onion.remove(http_retry_request_middleware). |
Uh oh!
There was an error while loading. Please reload this page.
I would introduce an optional boolean parameter to turn off the
HTTPRequestRetry
middleware when creating aHTTPProvider
. This would provide users with the possibility of implementing a custom retrial logic in their code.The text was updated successfully, but these errors were encountered: