Back

Appwrite function fails intermittently

  • 1
  • Functions
  • Web
  • Cloud
gaurav77
30 Aug, 2024, 13:45

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?

TL;DR
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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more