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
- Cloud login down?
I am able to access my functions, databases, and buckets - as well as deploy via cli, but I cannot login to the console - nor does my appwrite-account-based log...
- Certificate not regenerating
My Certainly issued certificate expired and I haven't recieved a new one yet. I've tried re-adding the domain aswell as its DNS records however it directly jum...
- Certificate isn't regenerating
Hi appwrite. I'm not being issued a new certificate on appwrite sites. I've tried re-adding the domain aswell as the certificates but it just does not work. I...