Open fzn0x opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.
With web3 1.x, we can use fetch-retry to wrap global fetch, but with 4.x it's not possible out of the box. It would be nice if we could provide the fetch implementation to HttpProvider or have it contain something like fetch-retry.
Is there an existing issue for this?
Feature Request
Add retry mechanism for HTTP Provider.
Use Cases
Proxy agent can be flaky, I'm using
https-proxy-agent
sometimes it can be connected or not, can we add retry mechanism for http provider so every errors will be retried? currently I'm usingp-retry
in charge.My country internet is currently ban the provider. So proxy did help me.
Implementation Ideas
I would prefer in
Web3.providers.HttpProvider
options.Feature Examples/References
This feature is available in web3.py.
Are you willing to implement this feature?