â–¿ 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
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...