sefidgaran / signalr_client

A Flutter SignalR Client for ASP.NET Core
https://pub.dev/packages/signalr_netcore
MIT License
71 stars 111 forks source link

Bad state: Future already completed #85

Open PawlikMichal25 opened 3 months ago

PawlikMichal25 commented 3 months ago

I've been getting quite a lot of Bad state: Future already completed errors.

They are thrown in /opt/hostedtoolcache/flutter/3.16.9-stable/x64/.pub-cache/hosted/pub.dev/web_socket_channel-2.4.0/lib/html.dart in HtmlWebSocketChannel.<anonymous function> at line 103:7 which seems to point to _readyCompleter.completeError(error); in

    innerWebSocket.onError.first.then((_) {
      final error = WebSocketChannelException('WebSocket connection failed.');
      _readyCompleter.completeError(error);
      _controller.local.sink.addError(error);
      _controller.local.sink.close();
    });

unfortunately I don't have repro steps. Do you have any advice what's wrong?