Skip to content

Improve the error message when the user/password is wrong #393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
scraly opened this issue Apr 11, 2025 · 1 comment
Open

Improve the error message when the user/password is wrong #393

scraly opened this issue Apr 11, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@scraly
Copy link
Contributor

scraly commented Apr 11, 2025

When we try to log in a Harbor registry, when the user and/or the password is wrong, the message displayed to the user is not very understandable.

$ harbor login xxxxxxxx.c1.de1.container-registry.ovh.net -u xxxxxx -p xxxxxxx
Error: login failed: login failed, please check your credentials: [GET /users/current][401] getCurrentUserInfoUnauthorized  &{Errors:[0x14000158240]}

A 401 HTTP code is a system message and not a user message :).

Thank you.

@bupd bupd added enhancement New feature or request help wanted Extra attention is needed labels Apr 13, 2025
@rizul2108 rizul2108 self-assigned this Apr 14, 2025
@meethereum
Copy link
Contributor

meethereum commented Apr 16, 2025

I think even while logging in, a feedback message like, "Logged in as (username)", or login succeeded would be useful. It is generally the case with all CLI login commands like docker login and gh auth login . Maybe I can work on this? @bupd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants