Comments (4)
@joeyyy688 why did you close this issue when it's not resolved? Please reopen it.
from signalr_core.
@joeyyy688 have you find a solution?
from signalr_core.
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.
@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)
- Upgrade http dependency HOT 5
- How to create builder with Header?
- Exception: The underlying connection was closed before the hub handshake could complete.
- BadState: Future already completed after calling _stopConnection
- signalr_core 1.1.1 depends on http ^0.13.0 HOT 2
- InvalidOperationException: Sequence contains no matching element HOT 1
- Unhandled Exception: Exception: HttpConnection.stopConnection(Exception: WebSocket closed with status code: 1002 (null).) was called while the connection is still in the connecting state. HOT 1
- signalr_core >=1.1.0 <1.1.2 depends on http ^0.13.0
- How to add proxy to HubConnectionBuilder?
- Retry lost connection forever?
- Server timeout after 30 seconds with long polling transport
- Stop method is not working
- Problem with HTTPS url HOT 4
- Please make this change in your code HOT 2
- Hubconnection.stop() take too long time
- Run signalR in background native service (Java et Kt)
- What is the proper way to subscribe on the events in SignalR?
- The underlying connection was closed before the hub handshake could complete. HOT 1
- Future Plans HOT 8
- JavaScript error on laptop sleep only in release web build HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signalr_core.