signalr_core icon indicating copy to clipboard operation
signalr_core copied to clipboard

The underlying connection was closed before the hub handshake could complete.

Open francochau opened this issue 4 years ago • 5 comments
trafficstars

I/flutter ( 3764): The underlying connection was closed before the hub handshake could complete. I/flutter ( 3764): SignalR HubConnectionState.Disconnected I/flutter ( 3764): Cannot send data if the connection is not in the 'Connected' State.

I believe this is caused by bad certificate as mentioned in #5

francochau avatar Jul 21 '21 10:07 francochau

I'm getting this fairly consistently, to the point where I've coded a retry for await _connection.start(); Any ideas?

shammill avatar Dec 09 '21 06:12 shammill

I'm experiencing the same issue, but your workaround works well for the time being - thanks for the idea @shammill !

sfmskywalker avatar Sep 10 '22 19:09 sfmskywalker

@sfmskywalker may i know what is the workaround ?

kivocsa99 avatar Dec 26 '23 16:12 kivocsa99

@kivocsa99 Sure, the workaround is to retry the call to await _connection.start(). I think I did it in a loop with a small delay.

sfmskywalker avatar Dec 26 '23 17:12 sfmskywalker

facing the same issue please help me

Hamza0101-bug avatar May 19 '24 09:05 Hamza0101-bug