Hello,
I have an issue where Appwrite returns a platform error instead of an authentication error. Is this normal?
Link: https://appwrite.io/docs/advanced/platform/response-codes
Here is my example code:
TypeScript
Future<void> signIn(String email, String password) async {
try {
await _account.createEmailPasswordSession(
email: email, password: password
);
} on AppwriteException catch (e) {
print(e);
rethrow;
}
}
Return
TypeScript
AppwriteException: general_argument_invalid, Invalid `password` param: Password must be between 8 and 256 characters long. (400)`
Thanks.
TL;DR
Appwrite is returning platform errors instead of authentication errors due to an invalid password (too short). Refer to the platform response codes documentation for more details. Consider checking password requirements and adjust accordingly.Recommended threads
- Cannot migrate from Supabase
Hi, I was trying to migrate from Supabase to the Appwrite database. My database had around 190K columns. I tried it twice. Both times, after 2 days, the proce...
- Production down - createExecution return...
Hey, Since 1.9.6 rollout in fra (~17:00 UTC, 14 Aug), POST /v1/functions/{functionId}/executions returns a 400 whenever the body includes an empty headers ob...
- Domain is owned by a different organizat...
Hi Appwrite team, I'm trying to add my custom domain **futlive9.com** to my project, but I'm getting the error: "Domain is owned by a different organization." ...