Back

[SOLVED] Error while login to Appwrite CLI

  • 0
  • Users
  • Accounts
  • Tools
Ahmed Ibrahim
10 Nov, 2023, 19:22

When I try to log in to my account using the CLI command Appwrite login, I receive the following message:

TypeScript
Error: The current user has been blocked. You can unblock the user by making a request to the User API's "Update User Status" endpoint or in the Appwrite Console's Auth section.

I attempted to clear the npm cache and reinstall Node.js, but the issue persisted. However, when I created a new Windows user, the CLI worked, and I could log in successfully. Therefore, the problem seems to be within my local Windows user. How can I resolve it?

TL;DR
User is experiencing an error while trying to log in to Appwrite CLI. They receive the error message "Error: The current user has been blocked." The issue seems to be specific to their local Windows user account. The solution is to create a new Windows user account, as this resolved the problem for the user.
Drake
10 Nov, 2023, 19:30

uhhhhh Are you connecting to cloud? What happens if you try to log in via the web console? what's the endpoint when you run appwrite client --debug?

Ahmed Ibrahim
10 Nov, 2023, 19:39

Yes, and I can normally log in using the web browser, the endpoint is https://cloud.appwrite.io/v1

Drake
10 Nov, 2023, 19:59

How are you trying to log in to your account?

Ahmed Ibrahim
10 Nov, 2023, 20:09

appwrite login then enter the mail and password. The same way is working when I do it with another windows user account

Ahmed Ibrahim
10 Nov, 2023, 20:12

From your previous answer I can see there the client commands. I will try with them

Ahmed Ibrahim
10 Nov, 2023, 20:15

Okay, the problem has been solved with the command appwrite client --reset. Thanks

Drake
10 Nov, 2023, 20:16

[SOLVED] Error while login to Appwrite CLI

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