Back

login cli error: Invalid url

  • 0
  • Tools
  • Cloud
d_honig
28 Aug, 2024, 12:44

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:

TypeScript
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.

TL;DR
Appwrite developer is unable to login to the CLI using email and password, encountering an "Invalid URL" error despite being able to login to the cloud console. The error seems related to a TypeError with the URL format. They have recently installed the CLI to test a cloud function locally and suspect there might be an issue with permissions on their work computer. The CLI version is 6.0.0 on Windows 10 Enterprise.
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