#[SOLVED] login cli error: Invalid url

1 messages · Page 1 of 1 (latest)

midnight spire
#

I can't login to appwrite cli with email and password. I can login to cloud console with the same email and password with no problems.
Error when running with verbose option:

TypeError: Invalid URL
    at new URL (node:internal/url:797:36)
    at Client.call (C:\Users\dhonig\AppData\Roaming\npm\node_modules\appwrite-cli\lib\client.js:149:17)
    at accountCreateEmailPasswordSession (C:\Users\dhonig\AppData\Roaming\npm\node_modules\appwrite-cli\lib\commands\account.js:1016:29)
    at loginCommand (C:\Users\dhonig\AppData\Roaming\npm\node_modules\appwrite-cli\lib\commands\generic.js:57:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 'ERR_INVALID_URL',
  input: '/account/sessions/email'
}

I haven't installed the cli before. I did it now in order to test a cloud function locally, but didn't manage to login.
CLI version: 6.0.0
Windows 10 Enterprise
I am using a work computer, maybe something is being blocked? I had no problems with cli's before.
Thanks.

midnight spire
#

I tried updating the password in the appwrite console as per another thread, didn't help.

brave lake
#

I don't believe the CLI 6.0.0 is actually GA. That may be your issue, downgrade to the last major version and try

midnight spire
#

Thanks for the suggestion.
Downgraded to 5.0.5. Unfortunately, same error.

brave lake
#

bummer :( what commands are you running?

odd moon
tacit zinc
midnight spire
#

Didn't get further than that 🙂

midnight spire
midnight spire
#

Sorry 🤦 apparently I didn't init properly before logging in. Working fine now