Hello, I'm using a function in Appwrite and the GET and POST method works well, the POST method creates a user with the method users.create() , but when I try the DELETE method it tells me {"error":"User with the requested ID could not be found."}
, I have this error when I use an ID to find a user, because when I try to add to team a user just created I'm having the same message.
I get the body values there: const { email, password, name, id } = req.body;
and to delete a user I use await users.updateStatus(id, false);
Thanks
TL;DR
Issue with finding users by their IDs in Appwrite. GET and POST methods work fine. However, encountering "User with the requested ID could not be found" error when trying to delete or add a user to a team. User creation with POST works. Solution: Check if the ID being used for deletion or team addition matches the existing user IDs accurately.