Back
Realtime listener does not get update when cloud function updates rows
- 0
- Functions
- Realtime
- Cloud
listener (flutter)
TypeScript
realtime
.subscribe(['databases.6882943XXXXX.tables.public.rows.main'])
.stream
.listen((message) {
print(message);
});```
cloud function that updates the doc. (Works fine)
``` await appwriteService.update(
databaseId: '6882943XXXXX',
collectionId: 'public',
documentId: 'main',
data: {
'totalEntries': length,
},
);```
**If I manually update row on cloud console, listener gives message. If my cloud function updates the row, the listener does not recieve anything.**
TL;DR
Developers are experiencing an issue where the realtime listener does not receive updates when a cloud function updates rows, but it works fine when the row is manually updated from the cloud console.
Solution: Ensure the cloud function triggers the necessary events for the realtime listener to receive updates correctly. This may involve adjusting the way the cloud function updates the rows to trigger the listener appropriately.Recommended threads
- Server Down
Appwrite services are down. When will they start working again?
- My cloud functions failing 3 days ago (P...
Hi, My cloud function using python has been failing for 3 days, I didn't push any new deployments... Its something to do with it not recognising the entrypoi...
- 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...