Skip to content
Back

Login to appwrite-cli fails

  • 0
  • Self Hosted
Arrow
16 Dec, 2024, 18:56

Hello! I just installed appwrite locally on docker, opened the dashboard and created a project, then tried to use the appwrite cli to log in but something is off, my prefs.json file got cleared out when I ran appwrite logout

TypeScript
Info: To report this error you can:
 - Create a support ticket in our Discord server https://appwrite.io/discord 
 - Create an issue in our Github
   https://github.com/appwrite/appwrite/issues/new?labels=bug&template=bug.yaml&title=%F0%9F%90%9B+Bug+Report%3A+Invalid+credentials.+Please+check+the+email+and+password.&actual-behavior=CLI+Error%3A%0A%60%60%60%0AError%3A+Invalid+credentials.+Please+check+the+email+and+password.%0A++++at+Client.call+%28%2Fopt%2Fhomebrew%2FCellar%2Fappwrite%2F6.1.0%2Flibexec%2Flib%2Fnode_modules%2Fappwrite-cli%2Flib%2Fclient.js%3A211%3A13%29%0A++++at+process.processTicksAndRejections+%28node%3Ainternal%2Fprocess%2Ftask_queues%3A105%3A5%29%0A++++at+async+accountCreateEmailPasswordSession+%28%2Fopt%2Fhomebrew%2FCellar%2Fappwrite%2F6.1.0%2Flibexec%2Flib%2Fnode_modules%2Fappwrite-cli%2Flib%2Fcommands%2Faccount.js%3A1016%3A16%29%0A++++at+async+loginCommand+%28%2Fopt%2Fhomebrew%2FCellar%2Fappwrite%2F6.1.0%2Flibexec%2Flib%2Fnode_modules%2Fappwrite-cli%2Flib%2Fcommands%2Fgeneric.js%3A57%3A9%29%0A%60%60%60&steps-to-reproduce=Running+%60appwrite+login%60&environment=CLI+version%3A+6.1.0%0AOperation+System%3A+Darwin%0AAppwrite+version%3A+unknown%0AIs+Cloud%3A+No
TL;DR
Developers are facing login issues with `appwrite-cli` when trying to login to their self-hosted instance. The command returns an error stating "Invalid credentials. Please check the email and password." Additionally, running `appwrite logout` clears the `prefs.json` file. For further assistance, developers are advised to report the error on Discord or GitHub.
Arrow
16 Dec, 2024, 18:56

cont ✗ Error: Stack Trace: AppwriteException [Error]: Invalid credentials. Please check the email and password. at Client.call (/opt/homebrew/Cellar/appwrite/6.1.0/libexec/lib/node_modules/appwrite-cli/lib/client.js:211:13) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async accountCreateEmailPasswordSession (/opt/homebrew/Cellar/appwrite/6.1.0/libexec/lib/node_modules/appwrite-cli/lib/commands/account.js:1016:16) at async loginCommand (/opt/homebrew/Cellar/appwrite/6.1.0/libexec/lib/node_modules/appwrite-cli/lib/commands/generic.js:57:9) { code: 401, response: 'user_invalid_credentials' } boss ~/.appwrite$

Kenny
16 Dec, 2024, 18:59

If you try with this command appwrite login --endpoint "<URL_HERE>" inserting your selfhosted instance in the URL_HERE spot, what happens?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more