▿ 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
- Function's Static IP
Is it possible to have static. IP Address instead of Dynamic IP for getting the IP Address whitelist
- How to use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...
- Enabling Overage Usage
Hello Appwrite Support Team, I am currently using Appwrite under the GitHub Student Developer Pack plan. Recently, my project hit the database read limit, and ...