Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Command line error handling needs some improvements

    Support
    2
    2
    166
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Robin last edited by

      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.

      nebulon 1 Reply Last reply Reply Quote 1
      • nebulon
        nebulon Staff @Robin last edited by

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

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        Powered by NodeBB