āæ Invalid credentials. Please check the email and password. #0
- message: "Invalid credentials. Please check the email and password."
āæ code: Optional(401)
- some: 401
- type: nil
that's the printed out error thrown when creating email session with incorrect credentials.
I've checked few other examples and type attribute, which is an optional String in AppwriteError class is also nil.
I've passed this to the team
Cool š
Appwrite & SDK version?
I can reproduce this on 1.3x but not on 1.4x.
sdk - 4.0.0 appwrite - 1.4.3
Can you try 4.0.1?
Here's what I'm doing -
do {
let account = Account(client)
let _ = try await account.createEmailSession(email: "user@xyz.com", password: "qwerty@12345!!") // wrong password
} catch let appwriteError as AppwriteError {
print([appwriteError.message, appwriteError.code!, appwriteError.type!])
}
// Output:
// ["Invalid credentials. Please check the email and password.", 401, "user_invalid_credentials"]
Well... updating to 4.0.1 fixed the issue! š„³
Thanks!
[SOLVED] Type attribute missing in AppwriteError (Cloud, 1.4.3)
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Appwrite Storage error 503s for automate...
I'm facing error 503s from Appwrite after about 5-6 seconds of making AI requests from my tool with images and files above 20MB (=> not inline base64 used, but ...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...