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
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...
- Functions executed by events does not ap...
Hello, Running self-hosted Appwrite version 1.9.0 (with console 7.8.26). When functions are triggered by an event (eg. databases.\*tables.\*.rows.\*.create) doe...