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

Show a more detailed error message when hitting GitHub rate limits #13

Closed
pditommaso opened this issue Sep 9, 2014 · 0 comments
Closed

Comments

@pditommaso
Copy link
Member

GitHub public repositories have a very low rate limits. See https://developer.github.com/v3/#rate-limiting

When trying to download a repository for which the user reached the access rate limit, Nextflow reports that the repository does not exists.

Cannot find cbcrg/piper-nf pipeline -- Make sure exists a GitHub repository at https://github.com/cbcrg/piper-nf

This is confusing the user. It should provide a more detailed error message suggesting to enter its credentials.

HTTP/1.1 403 Forbidden
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
Content-Encoding: gzip
Content-Security-Policy: default-src 'none'
Content-Type: application/json; charset=utf-8
Date: Tue, 09 Sep 2014 12:41:08 GMT
Server: GitHub.com
Status: 403 Forbidden
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
Transfer-Encoding: chunked
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-GitHub-Media-Type: github.v3
X-GitHub-Request-Id: 545842C2:592E:19837FF:540EF564
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1410267414
X-XSS-Protection: 1; mode=block

{
    "documentation_url": "https://developer.github.com/v3/#rate-limiting", 
    "message": "API rate limit exceeded for 84.88.66.194. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)"
}
pditommaso added a commit that referenced this issue Sep 14, 2014
olifly added a commit to wuxi-nextcode/nextflow-public that referenced this issue Nov 9, 2018
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