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
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...