Skip to content
Back

[SOLVED] Function Executions Randomly Fail

  • 1
  • Functions
  • Cloud
martino
1 Nov, 2024, 19:23

I'm getting a lot of "Unknown error occurred" logs - is this something wrong with the function? I'm passing in same input each time, with the function running the same logic, so I was surprised at this sort of behavior.

I also tried to re-deploy with no luck.

TL;DR
Issue: Function executions randomly fail due to "Unknown error occurred" logs. The problem may be within the source code rather than the Appwrite API. Solution: Check the source code for potential errors or reliance on third party services. Record and review any error logs for further investigation. Re-deployment did not resolve the issue.
Eldad
1 Nov, 2024, 19:25

Can you share your project ID? Also, how often is this happening for you?

martino
1 Nov, 2024, 19:26

this is the first time we've ever seen this happen to one of our functions - never had a problem before. This specific issue just popped up while this function was wrapping up on development.

Project ID: ||65ef90aedf3f2b5af0bb||

martino
1 Nov, 2024, 19:26

thanks for the quick response!!!

Eldad
1 Nov, 2024, 19:28

Can you tell how many errors like this you're seeing in total?

martino
1 Nov, 2024, 19:28

yeah lemme take a look quick

Eldad
1 Nov, 2024, 19:29

and when the first and last one or if you can share a screenshot of the failed ones

martino
1 Nov, 2024, 19:29

looks it happened about 10 times - first started about 30 mins ago -

martino
1 Nov, 2024, 19:30

This was the first occurrence:

martino
1 Nov, 2024, 19:30

and the most recent occurrence about 10 minutes ago:

Eldad
1 Nov, 2024, 19:34

Thanks!

This is what I found so far. We record all 500 errors, nothing shows up for your project in the 12 hours. This error seems to be an application level error and not something Appwrite throws. Any chance this coming from your source code? Are you relying on some 3rd party?

Eldad
1 Nov, 2024, 19:35

Or could it be you're calling the Appwrite API from within your function? Can you share any errors code or information you got from the request in that case?

martino
1 Nov, 2024, 19:36

hmm let me triple check my function to make sure it's not something there. i've never had this happen before so i wasn't sure if this was truly on appwrite's side

martino
1 Nov, 2024, 19:37

thank you for the help anyway! i'll mark this as solved for now, and if i continue to have issues I can't sort out i'll create a new issue :parrotlaptop:

Eldad
1 Nov, 2024, 19:37

From a first glance it seems like the function execution part is just fine. Problem could be inside the code, if it is the Appwrite API, we can try and help with that as well.

martino
1 Nov, 2024, 19:38

okay i'll let you know! thank you again!!!!

martino
1 Nov, 2024, 19:38

[SOLVED] Function Executions Randomly Fail

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