You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use the FallbackProvider to handle rpcUrl that could stop.
But it seem that FallbackProvider won't work when any of provided rpcUrl is unreachable.
constprovider=newFallbackProvider([newJsonRpcProvider('http://127.0.0.1:8545'),newJsonRpcProvider('http://127.0.0.1:1234'),// not exist],1);
I expect it will work because the quorum is 1, and the first url http://127.0.0.1:8545 works. But I got the noNetwork error: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.8)
Maybe I misunderstood how FallbackProvider works, is there any idea for this case?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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'd like to use the
FallbackProvider
to handle rpcUrl that could stop.But it seem that
FallbackProvider
won't work when any of provided rpcUrl is unreachable.I expect it will work because the
quorum
is1
, and the first urlhttp://127.0.0.1:8545
works. But I got thenoNetwork
error:Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.8)
Maybe I misunderstood how
FallbackProvider
works, is there any idea for this case?Beta Was this translation helpful? Give feedback.
All reactions