Cloudron CLI login command results in an HTTP 404 error with "Cannot POST /api/v1/developer/login" message
-
Hello,
I'm curious... I'm trying to run the Cloudron CLI (per recommendation in a previous post) and I'm getting the following when trying to login. I've used this before many months ago, but suddenly it's not working anymore.
<computerName> ~ % cloudron login my.<domain.tld> Username: <username> Password: ******************************** Login failed: Status code: 404 message: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Error</title> </head> <body> <pre>Cannot POST /api/v1/developer/login</pre> </body> </html>
Any ideas why this would be happening? Is this something not working on Cloudron 7.0.4?
-
@nebulon said in Cloudron CLI login command results in an HTTP 404 error with "Cannot POST /api/v1/developer/login" message:
You probably have to update the cli tool, since the
/api/v1/developer/login
route was long deprecated and finally removed from the server side.@girish said in Cloudron CLI login command results in an HTTP 404 error with "Cannot POST /api/v1/developer/login" message:
For reference, the latest CLI version is
4.12.8
(Usecloudron --version
to see current version)So I checked the version of Cloudron CLI finally and it seems I am indeed running 4.12.8...
<username>@<computerName> ~ % cloudron --version 4.12.8
However, I ran the command
cloudron login
again and now it suddenly works. So I'm not sure, maybe I had ran the update (I know I did for a fact) but perhaps it wasn't recognized until my computer had restarted over the holidays here. Something strange, but it's all good now it seems.