Skip to content
Back

Realtime Connection Error After Updating to Latest Server and Flutter SDK Version.

  • 0
  • 2
  • Flutter
  • Realtime
  • Cloud
AndresR
27 Feb, 2026, 23:08

I get the following error message now when the realtime subscription picks up a new message. There's more to the error but it makes the discord message too long. It used to work before updating sdk and server versions. Thanks for your help!

[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: type '_Map<String, dynamic>' is not a subtype of type 'Iterable<dynamic>' #0 new RealtimeMessage.fromMap (package:appwrite/src/realtime_message.dart:57:47) realtime_message.dart:57 #1 RealtimeMixin._createSocket.<anonymous closure> (package:appwrite/src/realtime_mixin.dart:134:45) realtime_mixin.dart:134 #2 _RootZone.runUnaryGuarded (dart:async/zone.dart:1778:10) zone.dart:1778 #3 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381:11) stream_impl.dart:381 #4 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312:7) stream_impl.dart:312 #5 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:798:19) stream_controller.dart:798 #6 _StreamController._add (dart:async/stream_controller.dart:663:7) stream_controller.dart:663 #7 _StreamController.add (dart:async/stream_controller.dart:618:5) stream_controller.dart:618 #8 _RootZone.runUnaryGuarded (dart:async/zone.dart:1778:10) zone.dart:1778 #9 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381:11) stream_impl.dart:381 #10 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312:7) stream_impl.dart:312 #11 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:798:19) stream_controller.dart:798

Code Snippet final String databaseId = dotenv.get('APPWRITEDATABASEID'); final String messagesTableId = dotenv.get('APPWRITEMESSAGESCOLLECTION'); final channel = 'databases.$databaseId.tables.$messagesTableId.rows';

TypeScript
_collectionSubscription = _realtime.subscribe([channel]);

_collectionSubscription!.stream.listen((response) {
TL;DR
The user is experiencing a realtime connection error after updating the server and Flutter SDK version to the latest ones. They reference a helpful support ticket by GIGI on Discord. Others in the thread share similar experiences of feeling ignored. The solution may be to check for any newer SDK versions released since the original ticket submission and conduct testing with Realtime functionality.
AndresR
27 Feb, 2026, 23:15

I am getting this message in my logs so it looks like it's setup correctly. flutter: Received heartbeat response from realtime server.

28 Feb, 2026, 02:01

What do you mean server version?

2 Mar, 2026, 17:42

Good morning Steven. I apologize I did not explain it well enough but GIGI did on this support ticket here: https://discord.com/channels/564160730845151244/1477645017119199324

This is the exact problem I have too.

!
2 Mar, 2026, 18:09

GIGI <:appwritepeepo:1156975874852270110>

!
2 Mar, 2026, 18:10

feels like my thread is being ignored lmao

1
3 Mar, 2026, 17:28

I saw Steven replied to you. I am on the the cloud version of Appwrite and was using the most up to date SDK version when I submitted this ticket. I'll see if they released a new SDK version since then. I'll do some testing with Realtime again today.

!
3 Mar, 2026, 17:48

yeah same on every point

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