-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Signalr.client : The server disconnected before the handshake could be started. #18260
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
Comments
Could you collect client and server logs? https://docs.microsoft.com/aspnet/core/signalr/diagnostics?view=aspnetcore-3.1 |
I will collect client and server logs. And I will insert here. |
Client side: 01-13 09:03:35.471 I/mono-stdout(11893): at Microsoft.AspNetCore.SignalR.Client.HubConnection.HandshakeAsync (Microsoft.AspNetCore.SignalR.Client.HubConnection+ConnectionState startingConnectionState, System.Threading.CancellationToken cancellationToken) [0x000f6] in <82f2bec582b048f7a648dfe730be82f1>:0 at Opinion.ViewModels.ConnectionHub.Connect () [0x00037] in C:\Users\srvieira\Desktop\DevOps\Second_Opinion\Opinion\Opinion\ViewModels\ConnectionHub.cs:188 01-13 09:03:35.472 I/mono-stdout(11893): at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncCore (System.Threading.CancellationToken cancellationToken) [0x00217] in <82f2bec582b048f7a648dfe730be82f1>:0 01-13 09:03:35.473 I/mono-stdout(11893): at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncInner (System.Threading.CancellationToken cancellationToken) [0x0019e] in <82f2bec582b048f7a648dfe730be82f1>:0 |
That is an exception, not client side logs. If possible, could you put your code in a github repo? |
yes, i will put. And share to you. if we trie in a localhost , he works fine in android. But if the app has to communicate with azure server, it doesn't work. |
this is client logs? |
Unfortunately those are not client logs. The logs should look something like:
Are you using VS? If so you'll need to configure the DebugLogger which is explained at https://docs.microsoft.com/aspnet/core/signalr/diagnostics?view=aspnetcore-3.1#debug-output-window-logging |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. See our Issue Management Policies for more information. |
Hy,
I am trying to make a connection between my mobile application on android and ios with the server that is hosted on an azure machine. And whenever I try to connect to the server to connect to the signalr service. Always give me this error: "The server disconnected before the handshake could".
The text was updated successfully, but these errors were encountered: