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

🐛 Bug Report: Flutter SDK realtime problem #234

Closed
2 tasks done
Hopheylalal opened this issue Jan 18, 2025 · 3 comments
Closed
2 tasks done

🐛 Bug Report: Flutter SDK realtime problem #234

Hopheylalal opened this issue Jan 18, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@Hopheylalal
Copy link

Hopheylalal commented Jan 18, 2025

👟 Reproduction steps

flutter: subscription: wss://cloud.appwrite.io/v1/realtime?project=657c02eb5ef6fa90f1d0&channels%5B%5D=databases.printerdb.collections.files.documents
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'Map<dynamic, dynamic>'
#0      new RealtimeResponse.fromMap (package:appwrite/src/realtime_response.dart:32:42)
#1      new RealtimeResponse.fromJson (package:appwrite/src/realtime_response.dart:39:24)
#2      RealtimeMixin._createSocket.<anonymous closure> (package:appwrite/src/realtime_mixin.dart:77:39)
#3      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#4      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:365:11)
#5      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:297:7)
#6      _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:784:19)
#7      _StreamController._add (dart:async/stream_controller.dart:658:7)
#8      _StreamController.add (dart:async/stream_controller.dart:606:5)
#9      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#10     _BufferingStreamSubscription._sendData (dart:async/stream_impl<…>

👍 Expected behavior

flutter: subscription: wss://cloud.appwrite.io/v1/realtime?project=657c02eb5ef6fa90f1d0&channels%5B%5D=databases.printerdb.collections.files.documents
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'Map<dynamic, dynamic>'
#0      new RealtimeResponse.fromMap (package:appwrite/src/realtime_response.dart:32:42)
#1      new RealtimeResponse.fromJson (package:appwrite/src/realtime_response.dart:39:24)
#2      RealtimeMixin._createSocket.<anonymous closure> (package:appwrite/src/realtime_mixin.dart:77:39)
#3      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#4      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:365:11)
#5      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:297:7)
#6      _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:784:19)
#7      _StreamController._add (dart:async/stream_controller.dart:658:7)
#8      _StreamController.add (dart:async/stream_controller.dart:606:5)
#9      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#10     _BufferingStreamSubscription._sendData (dart:async/stream_impl<…>

👎 Actual Behavior

flutter: subscription: wss://cloud.appwrite.io/v1/realtime?project=657c02eb5ef6fa90f1d0&channels%5B%5D=databases.printerdb.collections.files.documents
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'Map<dynamic, dynamic>'
#0      new RealtimeResponse.fromMap (package:appwrite/src/realtime_response.dart:32:42)
#1      new RealtimeResponse.fromJson (package:appwrite/src/realtime_response.dart:39:24)
#2      RealtimeMixin._createSocket.<anonymous closure> (package:appwrite/src/realtime_mixin.dart:77:39)
#3      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#4      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:365:11)
#5      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:297:7)
#6      _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:784:19)
#7      _StreamController._add (dart:async/stream_controller.dart:658:7)
#8      _StreamController.add (dart:async/stream_controller.dart:606:5)
#9      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#10     _BufferingStreamSubscription._sendData (dart:async/stream_impl<…>

🎲 Appwrite version

Version 2.0.x

💻 Operating system

Linux

🧱 Your Environment

flutter: subscription: wss://cloud.appwrite.io/v1/realtime?project=657c02eb5ef6fa90f1d0&channels%5B%5D=databases.printerdb.collections.files.documents
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'Map<dynamic, dynamic>'
#0      new RealtimeResponse.fromMap (package:appwrite/src/realtime_response.dart:32:42)
#1      new RealtimeResponse.fromJson (package:appwrite/src/realtime_response.dart:39:24)
#2      RealtimeMixin._createSocket.<anonymous closure> (package:appwrite/src/realtime_mixin.dart:77:39)
#3      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#4      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:365:11)
#5      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:297:7)
#6      _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:784:19)
#7      _StreamController._add (dart:async/stream_controller.dart:658:7)
#8      _StreamController.add (dart:async/stream_controller.dart:606:5)
#9      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#10     _BufferingStreamSubscription._sendData (dart:async/stream_impl<…>

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@Hopheylalal Hopheylalal added the bug Something isn't working label Jan 18, 2025
@berthou
Copy link

berthou commented Jan 24, 2025

Encountering same issue here with Appwrite 13.1.1

@Evgentret
Copy link

same, 13.1.1

@stnguyen90
Copy link
Contributor

This should be fixed as part of 14.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants