Skip to content

Commit

Permalink
y2m: Authenticate with GH to get better rate limiting.
Browse files Browse the repository at this point in the history
otherwise we get "error listing repositories in github", because curl replies
{
  "message": "API rate limit exceeded for 999.999.999.999. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
  "documentation_url": "https://developer.github.com/v3/#rate-limiting"
}
  • Loading branch information
mvidner committed Jan 4, 2017
1 parent 02c23ac commit 140299c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions y2m
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ get_repos_page() # {{{
)

curl --silent --verbose --show-error \
--netrc \
--dump-header $headersfile \
--output $responsefile \
${etag:+--header 'If-None-Match: '$etag} \
Expand Down

0 comments on commit 140299c

Please sign in to comment.