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
- Domain Help
My domain estimately.me is verified in Appwrite DNS but SSL certificate keeps failing with: DNS problem: server failure at resolver looking up A for estimately....
- 500Internal Error
, I am reaching out to report a critical issue with my project hosted on Appwrite Cloud (SFO Region). My project has suddenly stopped working, and all API req...
- Showing 1 member with role:developer in ...
For 30days of inactivity, my account got paused; so, I came back and clicked on the restore project button, which shows me I don't have the write access, where ...