Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
francochau opened this issue Jul 21, 2021 · 5 comments

Comments

@francochau
Copy link

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
Copy link

shammill commented Dec 9, 2021

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

@sfmskywalker
Copy link

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

@kivocsa99
Copy link

@sfmskywalker may i know what is the workaround ?

@sfmskywalker
Copy link

@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
Copy link

facing the same issue please help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants