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
- "Domain verification failed"
"Domain verification failed" I was install Appwrite in my VDS server. I using Coolify for install Appwrite. After install complete, i want add my domain, and i ...
- Appwrite Sites triggers builds for all p...
I connected my Appwrite Sites to my Git app on my self hosted Appwrite server, but even though I only connected it to main branch, it creates a build every sing...
- Scheduled works locking the entire Maria...
I have a scheduled function and apparently that or something is locking the entire MariaDB database and Appwrite is giving MariaDB errors. This error persists e...