Skip to content

Better error message when --server is not specified #402

Description

@jacalata

When a user runs any tabcmd command without specifying --server, the default http://localhost is used silently and they see a raw connection error:

HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /api/2.4/auth/signin (Caused by NewConnectionError(...Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it...))

This is confusing for users who simply forgot to provide a server URL. The fix should detect that the server value is still the default http://localhost (or that no server was explicitly provided) and print a clear, user-friendly message such as:

No server URL specified. Please provide one with --server <url>.

Or at minimum, wrap the connection error with a hint about --server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions