signalr_client icon indicating copy to clipboard operation
signalr_client copied to clipboard

handshake failed with error 'Null check operator used on a null value' during start().

Open IRelaxxx opened this issue 2 years ago • 4 comments

When starting the connection i get the above error because await _handshakeCompleter!.future; _handshakeCompleter is null in _startInternal

IRelaxxx avatar Nov 08 '22 10:11 IRelaxxx

@IRelaxxx Have you found anything on this ? I am facing this error too.

renik8484 avatar Nov 21 '22 17:11 renik8484

@IRelaxxx Have you found anything on this ? I am facing this error too.

No, i forked this repo and did a null check around the problematic code. Seems to work fine. https://github.com/daubit/signalr_client

IRelaxxx avatar Nov 22 '22 08:11 IRelaxxx

Can you share that null check code ?

renik8484 avatar Nov 22 '22 08:11 renik8484

I added the check here: https://github.com/daubit/signalr_client/blob/master/lib/hub_connection.dart#L208

IRelaxxx avatar Nov 23 '22 08:11 IRelaxxx