Command line error handling needs some improvements
Solved
Support
-
I haven't used the command line tool for a while. I tried to use it today, and was greeted with this:
Failed to get apps: 401 message: No such token
. Logging in again fixed it.I think this was an expired token, so it might be the 401 response is wrong. It would also be great if there was some handling/translation of the error codes on the cli side for user-friendliness.
-
@robin pushed a commit to at least give some explanation for 401 https://git.cloudron.io/cloudron/cloudron-cli/-/commit/d90b23c8b561f29f444145d40e4097cb098e5fa1
Apparently no token or invalid token provided to the REST api currently both returns 401.