jamiewest / signalr_core

ASP.NET Core SignalR Dart Client
https://pub.dev/packages/signalr_core
MIT License
90 stars 58 forks source link

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

Open francochau opened 3 years ago

francochau commented 3 years ago

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

shammill commented 2 years ago

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

sfmskywalker commented 1 year ago

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

kivocsa99 commented 8 months ago

@sfmskywalker may i know what is the workaround ?

sfmskywalker commented 8 months ago

@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.

Hamza0101-bug commented 3 months ago

facing the same issue please help me