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

premisson denied #98

Open
AimerYi opened this issue Oct 16, 2020 · 1 comment
Open

premisson denied #98

AimerYi opened this issue Oct 16, 2020 · 1 comment

Comments

@AimerYi
Copy link

AimerYi commented Oct 16, 2020

when I use this command to start my ghtorrent:ruby -Ilib bin/ght-retrieve-repo -c config.yaml gousiosg github-mirror;
It will generate this warning:
WARN, 2020-10-15T18:29:16+08:00, ghtorrent -- api_client.rb: Failed request. URL: https://api.github.com/users/gousiosg?per_page=100, Status code: 401, Status: Unauthorized, Access: place your , IP: 0.0.0.0, Remaining: 59
WARN, 2020-10-15T18:29:16+08:00, ghtorrent -- api_client.rb: Unauthorised request with token: place your github token here
WARN, 2020-10-15T18:29:16+08:00, ghtorrent -- ghtorrent.rb: Transaction failed (989 ms)
401 Unauthorized
seems like Permissions issue

@stuartbates
Copy link

stuartbates commented Nov 30, 2020

It looks like you haven't added your own GitHub API token to your config.

That error message comes from here:

warn "Unauthorised request with token: #{@token}"

You can either update the settings directly here:

:github_token => 'place your github token here',

Or a better idea would be to enter the token key inside your config.yaml like this:

https://github.com/gousiosg/github-mirror/blob/master/config.yaml.tmpl#L43

Hope that helps.

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

2 participants