Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request quota exhausted for request GET #51

Open
dschinkel opened this issue Jun 14, 2022 · 4 comments
Open

Request quota exhausted for request GET #51

dschinkel opened this issue Jun 14, 2022 · 4 comments

Comments

@dschinkel
Copy link

dschinkel commented Jun 14, 2022

How the hell do I get past this? Frustrating

Errors

Request quota exhausted for request GET https://api.github.com/repos/dschinkel/we-do-tdd/actions/runs?per_page=100, number of total global retries: 1
Retrying after 0 seconds!
Error: HttpError: You have exceeded a secondary rate limit. Please wait a few minutes before you try again.
(node:1535) UnhandledPromiseRejectionWarning: HttpError: You have exceeded a secondary rate limit. Please wait a few minutes before you try again.
    at /home/runner/work/_actions/c-hive/gha-remove-artifacts/v1/dist/index.js:[11](https://github.com/dschinkel/we-do-tdd/runs/6875740490?check_suite_focus=true#step:2:11)413:23
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Job.doExecute (/home/runner/work/_actions/c-hive/gha-remove-artifacts/v1/dist/index.js:14169:18)
(node:1535) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1535) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:1535) UnhandledPromiseRejectionWarning: HttpError: You have exceeded a secondary rate limit. Please wait a few minutes before you try again.
    at /home/runner/work/_actions/c-hive/gha-remove-artifacts/v1/dist/index.js:114[13](https://github.com/dschinkel/we-do-tdd/runs/6875740490?check_suite_focus=true#step:2:13):23
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    
Request quota exhausted for request DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}, number of total global retries: 70
Retrying after 3424 seconds!

gha-remove-artifacts is retrying way too many times and then causing this problem. How can we limit retries with this plugin?

Workflow

name: Remove-Old-Github-Action-Artifacts
on:
  push:
    branches:
      - master
  schedule:
    # Every day at 4am
    - cron: '0 4 * * *'

jobs:
  remove-old-artifacts:
    runs-on: ubuntu-latest
    timeout-minutes: 2
    steps:
      - name: Remove artifacts older than 30 seconds
        uses: c-hive/gha-remove-artifacts@v1
        with:
          age: '60 seconds'
@rafaljanicki
Copy link

I can confirm we're running in the same issue with the plugin

@StephenHodgson
Copy link

I am also seeing this quite a lot. even when running every hour

@mariuszste
Copy link

any updates? this is still an issue

@bbddmm
Copy link

bbddmm commented Jul 26, 2023

You can use the fork below.
I think this fork should be merged into master.
https://github.com/WATonomous/gha-remove-artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants