
Hello, how do I handle the failed execution of serverless functions? I've tried using try & catch blocks but it doesn't seem to work.

What failure are you referring to?

Just a fail to execute

For one reason or another

And why is it failing?
Where are you doing a try/catch?

In the front-end where I call the function
try {
await functions.createExecution('<>', JSON.stringify(payload), false, "/", "PATCH")
} catch(error) {
if (error instanceof AppwriteException) {
console.error(error.message);
} else {
console.error(error);
}
}

It doesn't throw an error. You'll need to look at the response

Oh okay, thanks
Recommended threads
- ❗[Help] Function stuck in "waiting" stat...
Hi Appwrite team 👋 I'm trying to contribute to Appwrite and followed the official setup instructions from the CONTRIBUTING.md guide to run the platform locall...
- Unable to create push providers - FCM or...
Currently unable to create a push provider for FCM or APNS.... https://github.com/appwrite/console/issues/2045 When uploading a file... FCM = Valid file retu...
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
