You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
After updating from release 0.54 to 0.9 I get a 401 Bad credentials problem #1003
Thanks for the issue @martinilevi and sorry you're having difficulty after upgrading. How did you install gh?
I'm not sure what in the upgrade might've caused this, but if you want to get back to using it immediately, you can force re-authentication by deleting ~/.config/gh/config.yml and then running any command.
Reacted by Girish Kumar, Landon Reed, Muskan Khedia, Amine SAADAOUI and Andy Lok
I'm having a similar issue - installed 0.9 from gh_0.9.0_linux_amd64.deb. When I try to clone a repo and am prompted to login via the browser:
The browser shows me the permissions page, then a success page after I authorize
In the terminal gh asks for my username and password, after supplying them it indicates 'invalid username or password'
Update: I believe the issue was caused by my use of MFA, when I created a new access token for the password prompt in the terminal everything started working
@martinilevi Let us know if re-authenticating by deleting the config file worked! We plan to improve the user experience around getting the 401 error #627, but for now manual reauthentication is needed.
Activity
billygriffin commentedon May 26, 2020
Thanks for the issue @martinilevi and sorry you're having difficulty after upgrading. How did you install gh?
I'm not sure what in the upgrade might've caused this, but if you want to get back to using it immediately, you can force re-authentication by deleting ~/.config/gh/config.yml and then running any command.
manwaring commentedon May 27, 2020
I'm having a similar issue - installed 0.9 from gh_0.9.0_linux_amd64.deb. When I try to clone a repo and am prompted to login via the browser:
Update: I believe the issue was caused by my use of MFA, when I created a new access token for the password prompt in the terminal everything started working
vilmibm commentedon May 27, 2020
fwiw, gh itself will never ask for a username and password--when that happens it's git under the hood trying to authenticate.
mislav commentedon May 27, 2020
@martinilevi Let us know if re-authenticating by deleting the config file worked! We plan to improve the user experience around getting the 401 error #627, but for now manual reauthentication is needed.
ribeirojose commentedon Jun 3, 2020
I've had the same issue, and that solution worked great here, @mislav. Thanks!
mislav commentedon Jun 3, 2020
Going to close this as duplicate of #627 where we plan to improve the behavior around getting the 401 error.