Coder Social home page Coder Social logo

Comments (4)

misici234 avatar misici234 commented on August 15, 2024 3

@joeyyy688 why did you close this issue when it's not resolved? Please reopen it.

from signalr_core.

wolnynick avatar wolnynick commented on August 15, 2024

@joeyyy688 have you find a solution?

from signalr_core.

misici234 avatar misici234 commented on August 15, 2024

I have
signalr_core: ^1.1.1
in my pubspec.yaml file and I'm getting the same error but from another place in the code

Bad state: Future already completed
#0      _AsyncCompleter.complete (dart:async/future_impl.dart:45:31)
#1      HubConnection._processHandshakeResponse (package:signalr_core/src/hub_connection.dart:778:25)
#2      HubConnection._processIncomingData (package:signalr_core/src/hub_connection.dart:682:14)
#3      ServerSentEventsTransport.connect.<anonymous closure> (package:signalr_core/src/transports/server_sent_events_transport.dart:80:17)
#4      _rootRunUnary (dart:async/zone.dart:1436:47)
#5      _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#6      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#7      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#8      _DelayedData.perform (dart:async/stream_impl.dart:591:14)
#9      _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706:11)
#10     _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:663:7)
#11     _rootRun (dart:async/zone.dart:1420:47)\n#12 ...

It fails on statement
_handshakeCompleter.complete();
in the _processHandshakeResponse function. You have already fixed in as

    if (!_handshakeCompleter.isCompleted) {
      _handshakeCompleter.complete();
    }

but in _connectionClosed function. I think you just need to do the same thing in _processHandshakeResponse.
Can you please fix it soon?

from signalr_core.

joeyyy688 avatar joeyyy688 commented on August 15, 2024

@misici234 I haven't tried it again since I faced this error, once you've found the solution I've closed this issue. Thank you

from signalr_core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.