nethermind icon indicating copy to clipboard operation
nethermind copied to clipboard

[Smoke Tests] Websocket Exception (ethstats)

Open MysticRyuujin opened this issue 5 years ago • 3 comments

So my node lost internet for a while (unrelated network issue), and Nethermind just kept dumping out this apparently un-handled exception.

I'm not sure if the intention is to display it like this or not, but it looks messy to dump into the log over and over.

2020-01-28 19:57:03.6848|ETH Stats disconnected, reason: Error
2020-01-28 19:57:03.6848|[WEBSOCKET CLIENT] Exception while connecting. Waiting 5 sec before next reconnection try. System.Net.WebSockets.WebSocketException (0x80004005): Unable to connect to the remote server
 ---> System.Net.Http.HttpRequestException: No such host is known.
 ---> System.Net.Sockets.SocketException (11001): No such host is known.
   at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.WebSockets.WebSocketHandle.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
   at System.Net.WebSockets.WebSocketHandle.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
   at System.Net.WebSockets.ClientWebSocket.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken)
   at Websocket.Client.WebsocketClient.<>c.<<-ctor>b__17_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Websocket.Client.WebsocketClient.StartClient(Uri uri, CancellationToken token, ReconnectionType type)

MysticRyuujin avatar Jan 29 '20 02:01 MysticRyuujin

yup need to make it nicer and ethstats is not critical so a short warning would do

tkstanczak avatar Jan 29 '20 16:01 tkstanczak

@SebastianDremo this will be something to add to our test infra - testing behaviour of all modules on connection loss

tkstanczak avatar Apr 17 '20 22:04 tkstanczak