I get this error only sometimes and I have no way to catch this... When I create 3 Realtime instances and subscribtions (3 Diffrent Collections) I get this error only sometimes when one of these collection i loaded last (random load order) dunno whats wrong or going on but it would just be helpful to catch this error... else my app crashes... here is the code:
RealtimeSubscription subscribeToRealtimeUpdates(String collectionId) {
try {
print('started subscription to $collectionId');
var subscription = Realtime(_client).subscribe([
'databases.$kAppwriteDb.collections.$collectionId.documents',
]);
print('listen to stream');
subscription.stream.listen((event) {
if (kDebugMode) {
print('got event for appwrite: ${event.payload}');
}
add(
RealtimeSubEvent(
model: fromJsonT(event.payload),
),
);
}).onError((e) => _logger.severe('realtime error: $e')); // does also not help...
return subscription;
} catch (e, s) { // does nothing at all...
_logger.severe(
'realtime error DB: $kAppwriteDb; Collection $collectionId;',
e,
s,
);
rethrow;
}
}
Recommended threads
- redirect_uri errors on flutter client
Hi all, I'm using the flutter client for my app to do appwrite auth and use the JWTs to send to my backend. When I try to sign in with SSO, I get this: https:/...
- float
Hello everyone, So, I created a column of type **float** with the **min** and **required** options, I noticed that it wouldn't let me set a **2 decimal points ...
- Unauthorized Charge on My Card – I Don’t...
Hi, I need urgent help. I received a bank SMS about a charge from "APPWRITE PRO" (18.460 JOD on 10/12/2025 at 03:47), but I DO NOT have an Appwrite account and...