Skip to content

Introduce waiting for rate limits #280

Description

@balupton

The inability for this package to wait for the rate limits before trying again is causing https://github.com/bevry/staticsitegenerators to often fail

static site generators list ➞ local render ➞ hydrate local data
TypeError: fetch failed
    at node:internal/deps/undici/undici:13502:13
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async file:///Users/balupton/Projects/websites/staticsitegenerators-list/node_modules/@bevry/github-api/edition-es2022-esm/index.js:530:24
    at async queryREST (file:///Users/balupton/Projects/websites/staticsitegenerators-list/node_modules/@bevry/github-api/edition-es2022-esm/index.js:529:5)
    at async getGitHubRepository (file:///Users/balupton/Projects/websites/staticsitegenerators-list/node_modules/@bevry/github-api/edition-es2022-esm/index.js:648:20)
    at async Promise.all (index 204)
    at async getGitHubRepositories (file:///Users/balupton/Projects/websites/staticsitegenerators-list/node_modules/@bevry/github-api/edition-es2022-esm/index.js:658:12)
    at async hydrate (file:///Users/balupton/Projects/websites/staticsitegenerators-list/edition-es2023-esm/util.js:76:19)
file:///Users/balupton/Projects/boundation/source/versions.js:239
                                        throw new Error(`No editions were kept, there should have been one.`)
                                              ^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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