Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(graphql): fix error is throwed when toggleConnection != null & fix(graphql_flutter): upgrate connectivity_plus #1435

Merged
merged 2 commits into from
May 27, 2024

Conversation

hantrungkien
Copy link
Contributor

  1. [graphql] fix error is throwed (althought it doesn't make any crash) when toggleConnection != null
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: ValueStream has no value. You should check ValueStream.hasValue before accessing ValueStream.value, or use ValueStream.valueOrNull instead.
      BehaviorSubject.value (package:rxdart/src/subjects/behavior_subject.dart:146:5)
      SocketClient._listenToToggleConnection.<anonymous closure> (package:graphql/src/links/websocket_link/websocket_client.dart:264:40)
      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
      _MultiStreamController.addSync (dart:async/stream_impl.dart:1101:36)
      _MultiControllerSink.add (package:rxdart/src/utils/forwarding_stream.dart:130:35)
      _TakeUntilStreamSink.onData (package:rxdart/src/transformers/take_until.dart:13:31)
  1. [graphql_flutter] upgrate connectivity_plus: ^6.0.3

2 important commits:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: ValueStream has no value. You should check ValueStream.hasValue before accessing ValueStream.value, or use ValueStream.valueOrNull instead.
      BehaviorSubject.value (package:rxdart/src/subjects/behavior_subject.dart:146:5)
      SocketClient._listenToToggleConnection.<anonymous closure> (package:graphql/src/links/websocket_link/websocket_client.dart:264:40)
      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
      _MultiStreamController.addSync (dart:async/stream_impl.dart:1101:36)
      _MultiControllerSink.add (package:rxdart/src/utils/forwarding_stream.dart:130:35)
      _TakeUntilStreamSink.onData (package:rxdart/src/transformers/take_until.dart:13:31)
@hantrungkien
Copy link
Contributor Author

@vincenzopalazzo Please check help me. Thank you for your patience!

@vincenzopalazzo
Copy link
Collaborator

Thanks, waiting for the CI competition and merging it

@vincenzopalazzo vincenzopalazzo merged commit 79c80fc into zino-hofmann:main May 27, 2024
4 checks passed
@hantrungkien
Copy link
Contributor Author

@vincenzopalazzo Thank you very much. Please let me know when I get a new version on pub.dev for bothgraphql andgraphql_flutter.

vincenzopalazzo added a commit that referenced this pull request May 28, 2024
fix(graphql): fix error is throwed when toggleConnection != null & fix(graphql_flutter): upgrate connectivity_plus

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants