▿ 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
- User column is processing
I am still encountering the processing tag after creating a column in my database. and its not a network or refresh issue, i have refreshed over and over, shutd...
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.