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
- Failed creating JWT via REST
The endpoint `v1/account/jwts` aint working as REST documentation says. It only works using Cookies recived from `v1/account/sessions/email`. My test commands s...
- Adding Phone Number During User Registra...
Hi everyone I'm working on integrating user registration in my application and need to include a phone number as a mandatory field. I understand that the accou...
- Self Hosting accessing AppWrite Console ...
Hey folks, I'm building out an application that helps people design offshore windfarms and looking to leverage AppWrite. I've used the hosted version for a cou...