Skip to content

Introduce waiting for rate limits #280

@balupton

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.`)
                                              ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions