checkout-files icon indicating copy to clipboard operation
checkout-files copied to clipboard

Rate limit hit on a folder with 1,400 files

Open vadi2 opened this issue 1 year ago • 1 comments

I tried using the action to fetch a folder with 1,400 files (would have saved me fetching a repo with 140k files), but the action hit a rate limit:

Run Bhacaz/checkout-files@v2
/home/runner/work/_actions/Bhacaz/checkout-files/v2/node_modules/@octokit/request/dist-node/index.js:86
      const error = new requestError.RequestError(toErrorMessage(data), status, {
                    ^

RequestError [HttpError]: You have exceeded a secondary rate limit. Please wait a few minutes before you try again.
    at /home/runner/work/_actions/Bhacaz/checkout-files/v2/node_modules/@octokit/request/dist-node/index.js:86:21
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  status: 403

vadi2 avatar Mar 07 '23 07:03 vadi2

Hi, thanks for the issue. Migrating to the tree API seems to be the solution. For the rate limiting and other issues. I'll to take a look.

Bhacaz avatar Mar 07 '23 13:03 Bhacaz