Skip to content

NoRPCEndpoints not triggered when only websocket connection fails #72

@gluckzhang

Description

@gluckzhang

The root cause is that WsRun() (ws.go:96) always uses cc.client.Remote() — the single node that RPC picked — for the websocket connection. When that node's WS fails but its RPC works, newRpc() picks the same node again next time.

NoRPCEndpoints is not triggered in this case: evaluateNoRPCEndpointsAlert only checks cc.noNodes, but newRpc() sets cc.noNodes = false on RPC success, so the counter keeps resetting.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions