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
When i try to use hubConnection.start().then() and i let it connect to a non-existent server (causes an error offcourse) the application crashes with the following error:
Unhandled Exception: type 'GeneralError' is not a subtype of type 'Error' in type cast
This happends in the file hub_connection.dart on line 244.
This line tries to cast the error to the type 'Error'. As a lot of the errors in this library are of type 'GeneralError', that fails.
As far as i know there is no reason that it casts to 'Error' as the same function is called with the type 'GeneralError' just a few lines above it.
When i try to use hubConnection.start().then() and i let it connect to a non-existent server (causes an error offcourse) the application crashes with the following error:
Unhandled Exception: type 'GeneralError' is not a subtype of type 'Error' in type cast
This happends in the file hub_connection.dart on line 244.
signalr_client/lib/hub_connection.dart
Line 244 in 288cb37
This line tries to cast the error to the type 'Error'. As a lot of the errors in this library are of type 'GeneralError', that fails.
As far as i know there is no reason that it casts to 'Error' as the same function is called with the type 'GeneralError' just a few lines above it.
signalr_client/lib/hub_connection.dart
Lines 236 to 238 in 288cb37
A fix for this would be to remove the cast in line 244 of hub_connection.dart. Like this:
completer.completeError(error);
The text was updated successfully, but these errors were encountered: