Back

`AppwriteException: Server Error` when invoking functions

  • 0
  • Functions
  • Cloud
danstevenson_reyt
27 Mar, 2024, 12:00

Are there any issues currently with Appwrite Cloud, specifically around Functions?

I am trying to call a function...

TypeScript
const sendEmailResponse = await functions.createExecution(
    sendEmailFunctionId,
    sendEmailRequestData,
    true,
    "/",
    "POST"
);

I have verified that the function ID and data are correct.

I can see from Appwrite Cloud that the function is not being executed.

An error is thrown: AppwriteException: Server Error

This is happening sporadically - sometimes the function is executed and sometimes it throws the error.

Any info or suggestions on this would be very useful.

TL;DR
Developers are experiencing `AppwriteException: Server Error` when trying to invoke functions in the app. The team is actively investigating with possible solutions being tested and a PR in progress. They are also looking into less frequent errors with GraphQL queries returning `Server Error`s. Solution: The team is on it with the investigation and working towards resolving the issue.
Eldad
27 Mar, 2024, 14:41

Please share your project ID

danstevenson_reyt
27 Mar, 2024, 20:13

@Eldad thanks for responing. The project ID is: 65dcad981d0f86cc7f7f

Eldad
27 Mar, 2024, 20:22

Got it, I see the error and it seems it happened on your project 23 times. Gonna get our team to take a look.

danstevenson_reyt
27 Mar, 2024, 20:30

Thank you. To provide more info... today we've had lots of problems invoking functions using the createExecution method. We tried using fetch to POST data to our function URLs, and seemed to have more success with this, but it hasn't been totally successful...

We are able to successfully POST to a function and get a 200 response, but then when sending the same data to the same function we get a 500 error and the function is not invoked (so we can't see the logs in Appwrite).

Please could you look into this urgently and let us know on any fix. We have had to cancel a client demo today because of this issue, and as we are at the beginning of a new project, which is the first one we have done using Appwrite, we're hoping the experience will get smoother from now on. Thanks

danstevenson_reyt
27 Mar, 2024, 20:34

@Eldad We've also had less frequent errors when trying to use the GraphQL client to invoke graphql.querys. We've noticed Server Error s being returned from those queries.

Eldad
27 Mar, 2024, 21:25

Sure thing. I’ll make sure this is a top priority for us, we’ve seen a few more reports today. Hopefully with the logs we now have we can come up with a quick solution

danstevenson_reyt
27 Mar, 2024, 21:27

Great, thanks. If you need any more info please let me know. Look forward to hearing back.

Eldad
27 Mar, 2024, 21:48

👌

danstevenson_reyt
28 Mar, 2024, 08:57

Hello @Eldad - do you have any more info on this please?

Eldad
28 Mar, 2024, 09:00

Our team in the east have been investigating this all night (EU night), we've a couple of possible solutions. We're testing one on stage right now, and if goes well, we'll deploy it gradually. 2nd possible solution is also in the works, and the team should have a PR in the next 1-2 hours, we're still running it against tests and try to see its effect.

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