Is this a good way to handle appwrite errors in nextjs server action ??
Instead of checking for status codes, I would utilize Appwrites error types to create better messages that are tailored to Appwrites exceptions.
https://appwrite.io/docs/advanced/platform/error-handling#common-error-types-and-suggested-messages
https://appwrite.io/docs/advanced/platform/response-codes#platform-errors
So for sign-up, sign-in i have to impliment all error types in a switch case??
Recommended threads
- Appwrite SSL Certificate Failure
Hello, I need help releasing a stuck domain. My Domain: adilnaib.engineer My Project ID: 68fe0aee001e999b5d71 Error: Failed to add domain to Fastly: {"msg":"B...
- [BUG] I'm facing an issue while creating...
Here’s what’s happening: When I try to create a new Web app on my Appwrite console (backend.keplr.in), the browser console shows multiple errors: Uncaught (in...
- Sites: Old deployment gets requests even...
Hi team, I use Sites to host a Next.js web app and it serves from old deployment for many hours. Is this expected? I thought it would serve from new deployment ...