gaurav77Original post
Web Developer
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?
Summary
Developers experiencing intermittent failures with an Appwrite function meant to reset order numbers daily. The issue involves an authorization error occurring sporadically despite expected constant failure if authorization was the root cause. The developer is seeking assistance and has provided relevant function, failure, and success messages.