Skip to content

Github rate limit exceeded #14

@lopuhin

Description

@lopuhin

When running codespeedinfo.get_latest_commit, the following error happens after a while:

  File "bench.py", line 88, in bookworm
    workpath)
  File "bench.py", line 55, in calculator
    codespeedinfo.uploadresult(test, w)
  File "/scrapy-bench/codespeedinfo.py", line 27, in uploadresult
    commit = get_latest_commit('scrapy', 'scrapy')
  File "/scrapy-bench/codespeedinfo.py", line 16, in get_latest_commit
    return requests.get(url).json()[0]
KeyError: 0

The reason is this:

{u'documentation_url': u'https://developer.github.com/v3/#rate-limiting',
 u'message': u"API rate limit exceeded for 54.72.188.245. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions