maxlath / backup-github-repo

Backup all the issues and pull requests of a Github repo, including the comments, events, and labels, as JSON and as HTML
40 stars 7 forks source link

401 Unauthorized #10

Open vi opened 2 months ago

vi commented 2 months ago

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