Skip to content
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

401 Unauthorized #10

Open
vi opened this issue Aug 3, 2024 · 0 comments
Open

401 Unauthorized #10

vi opened this issue Aug 3, 2024 · 0 comments

Comments

@vi
Copy link

vi commented Aug 3, 2024

Does not seem to work (at least without a token):

$ backup-github-repo https://github.com/maxlath/backup-github-repo
[backup-github-repo] config not found or empty
We recommand setting a configuration file to store a Github API token.

Using a token increases the number of API requests we can make, see https://developer.github.com/v3/#rate-limiting
Get a new token at https://github.com/settings/tokens
Public repo: no special permission required.
Private repo: require authorization: [repo: Full control of private repositories]

Create a configuration file? [Y/n]
: n
data path: /tmp/shell-bash.53UzeexF/maxlath_backup-github-repo/data.json
repo: maxlath/backup-github-repo
[get request error: will retry in 2s] 401 Unauthorized {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"}
last known state of ratelimit { limit: 60, remaining: 57, reset: 1722679469000, used: 3 }
[get request error: will retry in 4s] 401 Unauthorized {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"}
last known state of ratelimit { limit: 60, remaining: 56, reset: 1722679469000, used: 4 }
[get request error: will retry in 8s] 401 Unauthorized {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"}
last known state of ratelimit { limit: 60, remaining: 55, reset: 1722679469000, used: 5 }
[get request error: will retry in 16s] 401 Unauthorized {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"}
last known state of ratelimit { limit: 60, remaining: 54, reset: 1722679469000, used: 6 }
^C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant