Back
sdk.js:267 Uncaught (in promise) AppwriteException: Invalid `documentId` param: UID must contain at
- 0
- Web
Abdullah
TypeScript
console.log("id we want to sent " + id);
try {
databases.updateDocument(
conf.appwritedatabaseId,
conf.balancecollectionId,
Query.equal("user", id),
{
balance: balance,
}
);
} catch (error) {
console.log("updatebalance error: " + error);
}
}
const receiverId = formData.id; const amount = Number(formData.balance);
I need to update the the balance field in balance collection using user field which id id but having this error why ? I'm getting the id user id form input from user
TL;DR
The developer is encountering an error when attempting to update the balance field in the balance collection using the user ID inputted by a user. The error message suggests that the `documentId` parameter is invalid. The error specifically mentions that the UID must contain the characters "at".
The solution would be to ensure that the user ID being passed as the `id` parameter contains the necessary characters. It's likely that the developer needs to append the missing characters to the user ID before using it in the `updateDocument` method. Recommended threads
- Incorporate appwrite with spring boot
I am trying to upload files from a Spring boot app to appwrite. I've checked the SDK on maven but it seems to be for Android. Do I have to call Appwrite's REST ...
- User is not authorized to read collectio...
When i tried to make a read call to my db it always returns that my user is not authorized to perform such action am i doing something wrong?
- How to cron function with specified end ...
I have function built with hono. support like / , /data, /data/2222. I want to schedule triggger for specific event like /data. orrr event better /data/2222 . i...