Infinite loop in _start() at provider-jsonrpc.ts #4015
Labels
enhancement
New feature or improvement.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
minor-bump
Planned for the next minor version bump.
v6
Issues regarding v6
Ethers Version
6.2.3
Search Terms
Infinite loop, _start()
Describe the Problem
What I want to do is to create a rpc provider from an address and if there is any error reading from that address to be able to switch to another one. Unfortunately, on provider creation the provider loops infinitely by trying to connect to the address.
That behavior should be left to the user.
If you don't want to change the current behavior a boolean parameter at a constructor to override the default behavior can be helpful.
Here is where the infinite loop happens, provider-jsonrpc.ts line 600 while trying to detect the network:
Code Snippet
No response
Contract ABI
No response
Errors
No response
Environment
Browser (Chrome, Safari, etc), Other (please specify)
Environment (Other)
SolidJS
The text was updated successfully, but these errors were encountered: