I created an appwrite function which is scheduled to run daily. Using this function I reset the order number in my database to 0.
I see that some days this function runs successfully, some days it fails saying: AppwriteException: The current user is not authorized to perform the requested action. If this was the case wouldn't I get this error every time.
I am attaching the Appwrite function, failure message and success message. Could someone please help me with this?
Recommended threads
- Deleted my account, trying to signup aga...
https://cloud.appwrite.io/console/login?error=%7B%22message%22%3A%22This+email+address+must+already+be+in+its+canonical+form.+Please+remove+aliases%2C+tags%2C+o...
- Unable to create Sites or Functions with...
Heya, I was looking at the appwrite documentation for Sites API with the server api: https://appwrite.io/docs/references/cloud/server-nodejs/sites I can’t fin...
- Index for combination of columns
How am i suppposed to apply index so that combination of two columns alwasy remain unique in appwrite table though console