-
Notifications
You must be signed in to change notification settings - Fork 8.2k
401 Error at every turn #10032
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingdiscussFeature changes that require discussion primarily among the GitHub CLI teamFeature changes that require discussion primarily among the GitHub CLI teamgh-authrelating to the gh auth commandrelating to the gh auth commandmore-info-neededMore info needed from user/contributorMore info needed from user/contributorneeds-triageneeds to be reviewedneeds to be reviewed
Description
Describe the bug
gh version 2.59.0 (2024-10-16)
https://github.com/cli/cli/releases/tag/v2.59.0
Often when trying to do something with gh related to a repo I continue to get the following error:
> gh browse
unable to determine base repository: HTTP 401: Bad credentials (https://api.github.com/graphql)
Try authenticating with: gh auth login
I'm on Windows 11 commandline and keep having to do:
set GITHUB_TOKEN=to clear it- Login with gh auth login (annoyingly)
- Go through the whole process
- It's fixed for a little while
- Not much long after it's an issue again.
I've done this multiple times for different projects, and just now again today within less than an hour.
Steps to reproduce the behavior
It happens after opening another project, or a new terminal not that long after I JUST authenticated.
Expected vs actual behavior
I would expect me to just login once and NOT have to keep logging in every single day or multiple times a day.
Logs
Paste the activity from your command line. Redact if needed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdiscussFeature changes that require discussion primarily among the GitHub CLI teamFeature changes that require discussion primarily among the GitHub CLI teamgh-authrelating to the gh auth commandrelating to the gh auth commandmore-info-neededMore info needed from user/contributorMore info needed from user/contributorneeds-triageneeds to be reviewedneeds to be reviewed
Type
Fields
Give feedbackNo fields configured for issues without a type.