Better error message when --server is not specified
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start by reproducing a tabcmd command without --server and trace how the default http://localhost value reaches the connection error, especially around the /api/2.4/auth/signin request. Update the CLI’s error path so the missing server is identified and the user receives a --server hint; done means the raw connection error is replaced or wrapped with a clear message.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 52
- Forks
- 17
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tableau/tabcmd
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100