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
- Roles Enum Limitation in Kotlin SDK
The createMembership method in the Appwrite Kotlin SDK now requires List<io.appwrite.enums.Roles> instead of List<String>, but the predefined Roles enum only co...
- Cloud function deployment failures
When I run appwrite push functions, select the function I want to deploy, confirm with a YES, is starts deploying but goes into error. I need to repeat the ste...
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...