I have very weird issues with database on Cloud since last database incident. It happens randomly and I can't really fix it.
Straight forward example:
val documents = databases.listDocuments(...)
documents.forEach { document ->
// throws 404 - Document with the requested ID could not be found
databases.updateDocument(document.id, data)
// same here
databases.deleteDocument(document.id)
}
// or just one
val document = databases.getDocument(documentId)
databases.updateDocument(document.id, data)
Yes, documents are 100 percent in database, otherwise fetching wouldn’t work, and it fails even when creating fresh document.
How could createDocument function with unique document id throw 404?
It happens to approximately 2-3% of write requests, which is not huge but it should not happen ever in the first place.
It basically corrupts users data and state since I can’t really fix or handle it properly on my end.
Any clues?
Recommended threads
- not able to extract anything from create...
when using createEmailPasswordSession const session = await account.createEmailPasswordSession(email, password) i am able to get the session but when using co...
- ⨯ AppwriteException: Invalid redirect
my vercel logs ```⨯ AppwriteException: Invalid redirect at _Client.redirect (node_modules/node-appwrite/dist/client.mjs:255:13) at async Account.createO...
- [SOLVED] Not able to interact with datab...
Can anyone help me? I have used Appwrite multiple times before, but this time, I created a new project, and it is not interacting with the database. It's a fres...