I suspect this is something to do with my setup existing on the beta and getting into a weird state but when I attempt to update, I’m getting a bad credentials exception from the GitHub API calls.
Suspecting this was similar to GitHub API 401 when running `flox activate`, I relogged with gh auth
but to no avail.
$ gh auth login
? What account do you want to log into? GitHub.com
? You're already logged into github.com. Do you want to re-authenticate? Yes
? What is your preferred protocol for Git operations? HTTPS
? Authenticate Git with your GitHub credentials? Yes
? How would you like to authenticate GitHub CLI? Login with a web browser
! First copy your one-time code: 04C8-D0F7
Press Enter to open github.com in your browser...
✓ Authentication complete.
- gh config set -h github.com git_protocol https
✓ Configured git protocol
✓ Logged in as jacobbednarz
$ flox pull -e flox/default
Updating /Users/jacob/.config/flox/nix.conf
Already on 'x86_64-darwin.default'
Your branch is up to date with 'origin/x86_64-darwin.default'.
Everything up-to-date
error: unable to download 'https://api.github.com/repos/flox/capacitor/tarball/3a1505cf9f13f6e44c882d9f3c69dcafbd0462e1': HTTP error 401
response body:
{
"message": "Bad credentials",
"documentation_url": "https://docs.github.com/rest"
}
(use '--show-trace' to show detailed location information)
error: unable to download 'https://api.github.com/repos/flox/nixpkgs-flox/tarball/bc44d6d77530ff0f5d7cdf28b4d8feb37bc8af70': HTTP error 401
response body:
{
"message": "Bad credentials",
"documentation_url": "https://docs.github.com/rest"
}
(use '--show-trace' to show detailed location information)
error: unable to download 'https://api.github.com/repos/flox/nixpkgs-flox/tarball/bc44d6d77530ff0f5d7cdf28b4d8feb37bc8af70': HTTP error 401
response body:
{
"message": "Bad credentials",
"documentation_url": "https://docs.github.com/rest"
}
(use '--show-trace' to show detailed location information)
error: unable to download 'https://api.github.com/repos/flox/nixpkgs-flox/tarball/bc44d6d77530ff0f5d7cdf28b4d8feb37bc8af70': HTTP error 401
response body:
{
"message": "Bad credentials",
"documentation_url": "https://docs.github.com/rest"
}
(use '--show-trace' to show detailed location information)
I also tried removing access-tokens
from /Users/jacob/.config/flox/nix.conf
just in case there were some stale tokens in there as well as gh auth logout
.