Skip to content
Back

Flutter 13.1.1 Realtime error

  • 0
  • Flutter
  • Cloud
Alewww
3 Jan, 2025, 11:41

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<…>

TL;DR
Developers are encountering a realtime error in Flutter 13.1.1 related to a 'Null' type not being a subtype of 'Map<dynamic, dynamic>'. The error seems to be originating from the RealtimeMixin and RealtimeResponse files. There is no solution provided in the thread.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more