
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
- Deleted an column but can't reuse name
I deleted a relationship column because I was having trouble with deleting a row and I was suspicious of the relationship. After deleting the column the row was...
- SSR Image Previews
I am using the SSR guide (with SvelteKit) to use Appwrite on both the server and the client. I do this by also passing the cookie back to the client and creatin...
- fix ip function for whitelisting
Hello, any recommendation how to make IP of Appwrite Function on cloud is fixed for whitelisting purpose?
