You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
why using await connection.start() _CastError (type '_CastError' is not a subtype of type 'Exception' in type cast)
not connect start. I using signalr_core 1.1.1 and dotnet core 2.1
I/flutter (14152): The HttpConnection connected successfully.
I/flutter (14152): Sending handshake request.
I/flutter (14152): Hub handshake failed with error 'Null check operator used on a null value' during start(). Stopping HubConnection.
I/flutter (14152): HubConnection failed to start successfully because of error '{type '_CastError' is not a subtype of type 'Exception' in type cast.toString()}'.
E/flutter (14152): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: type '_CastError' is not a subtype of type 'Exception' in type cast
The text was updated successfully, but these errors were encountered:
startConnection is called from somewhere else in our code. If we have an error on our side, it could be called multiple times.
But still, the error reported here, is a cast exception in the libraries code. This is the stack trace:
_CastError: type '_CastError' is not a subtype of type 'Exception' in type cast
File "hub_connection.dart", line 221, in HubConnection._startInternal
File "hub_connection.dart", line 154, in HubConnection._startWithStateTransitions
why using await connection.start() _CastError (type '_CastError' is not a subtype of type 'Exception' in type cast)
not connect start. I using signalr_core 1.1.1 and dotnet core 2.1
I/flutter (14152): The HttpConnection connected successfully.
I/flutter (14152): Sending handshake request.
I/flutter (14152): Hub handshake failed with error 'Null check operator used on a null value' during start(). Stopping HubConnection.
I/flutter (14152): HubConnection failed to start successfully because of error '{type '_CastError' is not a subtype of type 'Exception' in type cast.toString()}'.
E/flutter (14152): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: type '_CastError' is not a subtype of type 'Exception' in type cast
The text was updated successfully, but these errors were encountered: