PSLmodels / PSL-Infrastructure

The Policy Simulation Library consists of models and modeling tools that share the transparency standards and interoperability criteria set by the PSL-Infrastructure project
https://www.pslmodels.org
Other
18 stars 17 forks source link

Catalog builder GH Action failing #304

Closed jdebacker closed 7 months ago

jdebacker commented 7 months ago

Traceback reveals an HTTP 403 error:

MISSING DATA: Behavioral-Responses, entry: user_changelog_recent, {'start_header': None, 'end_header': None, 'source': None, 'type': None, 'data': None}
GET: https://api.github.com/repos/PSLmodels/Behavioral-Responses/contents/RELEASES.md?ref=master 403
Second try at GET: https://api.github.com/repos/PSLmodels/Behavioral-Responses/contents/RELEASES.md?ref=master 403
    cb.load_catalog()
  File "/home/runner/work/PSL-Infrastructure/PSL-Infrastructure/Tools/Catalog-Builder/catalog_builder/catalog.py", line 140, in load_catalog
    value = utils.get_from_github_api(project, config)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/PSL-Infrastructure/PSL-Infrastructure/Tools/Catalog-Builder/catalog_builder/utils.py", line 150, in get_from_github_api
    text = _get_from_github_api(
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/PSL-Infrastructure/PSL-Infrastructure/Tools/Catalog-Builder/catalog_builder/utils.py", line 140, in _get_from_github_api
    assert "hit rate limit" == 403

cc @fox8090

jdebacker commented 7 months ago

Resolved with PR #317