-
Notifications
You must be signed in to change notification settings - Fork 66
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
Try to connect to server and get exception on call start(); #14
Comments
The |
Yes, i remove actual token from logs for safety. |
I keep getting this error HttpConnection.stopConnection(Exception: WebSocket closed with status code: 1002 (null).) called while in state ConnectionState.connecting. |
I am having the very same error, except my, I don't use access tokens, my SignalR server is open to everyone. I use .NET Core 3.1 on Windows server (for some reason on Linux server I had issues).
Now the server does not disconnect if I start the connection and keep it sitting there, it disconnects at some point after data exchange starts. I just randomly receive the error below. I have noticed something when I set transport under connection options to
I still receive the exception that I cannot call start My Server: I/flutter ( 9610): WebSocket connected to wss://URL?id=jOxUVuMauABfLhE4VmoOYw. E/flutter ( 9610): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: Read failed |
@jamiewest any ideas? |
I think toString is getting called on an exception that hadn't been cast as an exception. I'm off today so I will see if i can track down the problems mentioned in the issue. Thanks all for everyone's patience on this. |
@zuboje I committed a few bits earlier, could try them out and let me know the outcome? Update your reference in signalr_core:
git:
url: https://github.com/jamiewest/signalr_core.git
ref: 3e8abe6e5ac1dd9dd2f18c0df91bfd9c8ba8a4af |
@jamiewest it looks like the problem is resolved. I am no longer receiving an error. |
Hello, I keep getting a similar error to this any help? |
anyone has fixed this. The first request in the connection is authorized using the access token in the query string, but the next request are not authorized and keep giving me 401, any help please, we are stuck |
I try to open connect to server and on start get exception:
** {Exception: WebSocket closed with status code: 1002 (null).**
What am I doing wrong?
My code:
Logs:
LogLevel.debug: Starting HubConnection. LogLevel.debug: Starting connection with transfer format 'TransferFormat.text'. LogLevel.debug: Sending negotiation request: https://ultapps.com/ws/geo/negotiate. LogLevel.debug: Selecting transport 'HttpTransportType.webSockets'. LogLevel.trace: (WebSockets transport) Connecting. LogLevel.information: WebSocket connected to wss://ultapps.com/ws/geo?id=-q9VeFkVBznJZKVRHg-o2g&access_token=<token>. LogLevel.debug: The HttpConnection connected successfully. LogLevel.debug: Sending handshake request. LogLevel.trace: (WebSockets transport) sending data. String data of length '32'. LogLevel.information: Using HubProtocol 'json'. LogLevel.trace: (WebSockets transport) socket closed. LogLevel.debug: HttpConnection.stopConnection(Exception: WebSocket closed with status code: 1002 (null).) called while in state ConnectionState.connected. LogLevel.error: Connection disconnected with error 'Exception: WebSocket closed with status code: 1002 (null).'. LogLevel.debug: HubConnection.connectionClosed(Exception: WebSocket closed with status code: 1002 (null).) called while in state HubConnectionState.disconnected. LogLevel.debug: HttpConnection.stopConnection(null) called while in state ConnectionState.disconnected. LogLevel.debug: Call to HttpConnection.stopConnection(null) was ignored because the connection is already in the disconnected state. LogLevel.debug: Hub handshake failed with error 'Exception: WebSocket closed with status code: 1002 (null).' during start(). Stopping HubConnection. LogLevel.debug: Call to HttpConnection.stop(Exception: WebSocket closed with status code: 1002 (null).) ignored because the connection is already in the disconnected state. LogLevel.debug: HubConnection failed to start successfully because of error '{Exception: WebSocket closed with status code: 1002 (null)..toString}'.
The text was updated successfully, but these errors were encountered: