I have a function that creates documents, and sometimes it fails with timeout error, no idea why. But it's not a problem, the problem is when this function fails appwrite automatically re-executes this function again. Why? It causes duplication in collections
please suggest an example how to remove duplicates by some attribute, e.g. email
You sure you did not accidentally trigger it again? Cause normally appwrite does not automatically re-execute the function.
How is your function triggered? Automatically (and if so, how) or manually (e.g. by a user)?
And if it fails because of timeout, just set the timeout value higher:
And don't forget to do the same in your appwrite.json if you deploy with appwrite cli
Recommended threads
- unlike any other provider, your sites DN...
your nameservers dont work with a funny little CNAME error, which is a weird bug but thats what you get when you try to be the kitchen sink, funny errors.
- general_unauthorized_scope
localhost oauth not working. general_unauthorized_scope error showing. { "message": "User (role: guests) missing scopes ([\"account\"])", "code": 401, ...
- Weird Table Causes Console to break
I dont even know how this even happened looks like the $createdAt and , $id got switched? <@831428608895615056>