The client will give up after one try when using tryAllNodes
Closed this issue · 3 comments
ckniffen commented
If all endpoints fail to get a connection when using tryAllNodes
it will not try a second time. This occasionally happens in the Explorer when a cluster is under high congestion.
Steps to Reproduce
- Call new new
XrplClient(['wss://google.com', 'wss://yahoo.com'], {
tryAllNodes: true
})
- Look at browser network tab you will see it gives up trying to make a connection. Once per endpoint.
- Set
tryAllNodes
tofalse
- Look at browser network tab you will see it will keep trying to connect.
WietseWind commented
That's currently as designed (try all, or fail) but it's not too hard to add retrying anyway. Will work on that.
WietseWind commented
Added in xrpl-client@2.0.2
, published.
ckniffen commented
Fantastic!