Skip to content
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

Bad state: Future already completed #85

Open
PawlikMichal25 opened this issue May 19, 2024 · 0 comments
Open

Bad state: Future already completed #85

PawlikMichal25 opened this issue May 19, 2024 · 0 comments

Comments

@PawlikMichal25
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant