Back

Invalid Credentials error in appwrite CLI

  • 0
  • Tools
Danish
3 Oct, 2023, 04:10

yes

TL;DR
User is experiencing an 'Invalid Credentials' error in the appwrite CLI. They reinstalled the CLI and it worked this time. They are not able to find the 'create email session network request' and are asking for assistance. Support suggests running a curl command in WSL and checking the network logs in the browser. The user confirms that it works. Support asks if the issue could be related to changes in the .env file, but the user says it is the same. Support suggests checking the docker containers using the command 'docker ps -a' in PowerShell and WSL. User confirms that there are multiple appwrite instances. Support
Drake
3 Oct, 2023, 04:15

How did you change the endpoint?

Danish
3 Oct, 2023, 04:26

there was a similar thread on github, followed it and got this: appwrite client --selfSigned true --endpoint https://localhost/v1

Drake
3 Oct, 2023, 04:27

So does appwrite client --debug show localhost with self signed true?

Danish
3 Oct, 2023, 04:28

yes

Drake
3 Oct, 2023, 04:30

The only thing I can think of is either the credentials are invalid or the request isn't being sent to the right instance because of WSL

Danish
3 Oct, 2023, 04:30

here is the docker compose logs

Danish
3 Oct, 2023, 04:31

credentials are valid as I'm able to login on web console with the exact same

Drake
3 Oct, 2023, 04:33

And you're accessing the appwrite console on Windows via https://localhost?

Danish
3 Oct, 2023, 04:33

yes

Drake
3 Oct, 2023, 04:34

Maybe you have multiple appwrite instances

Drake
3 Oct, 2023, 04:34

Whats docker ps -a show on windows PowerShell vs in wsl?

Danish
3 Oct, 2023, 04:36

in wsl

Danish
3 Oct, 2023, 04:36

in powershell

Drake
3 Oct, 2023, 04:37

Nope it's the same 🧐

Danish
3 Oct, 2023, 04:37

can it be because of changes in .env file?

Danish
3 Oct, 2023, 04:37

or just CLI

Drake
3 Oct, 2023, 04:38

Possibly...have you tried logging into the appwrite console again?

Danish
3 Oct, 2023, 04:38

yes

Danish
3 Oct, 2023, 04:39

it works

Drake
3 Oct, 2023, 04:39

Would you please open the network logs in your browser and log into the Appwrite console again? Then, right click on the create email session network request and copy as curl

Drake
3 Oct, 2023, 04:41

Then, run that curl command in WSL

Danish
3 Oct, 2023, 05:12

I'm not able to find 'create email session network request'

Danish
3 Oct, 2023, 06:36

i re-installed and it worked this time

Danish
3 Oct, 2023, 06:37

sorry for inconvenience

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