API key status CLI does not match app behavior

Aperta
#498 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github, python
Ambito
api, backend

Direzione di ricerca

Start with the API keys CLI's rate-limit status and compare its rate_limits API response with the GitHub REST request handling shown in the logs. Trace how KeyOrchestrator expires a key after the 403 response, then reproduce the mismatch using the reported quota and reset values. Done means the displayed status and key-expiration behavior agree with the app's actual rate-limit response.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I recently was testing a PR related to repo cloning where I added a bunch of new repos.

things were taking a while despite the api keys CLI showing 4500+/5000 on both rest and graphql rate limits.

Despite that, checking the logs showed this:

 Response: {
[core]     |    "message": "API rate limit exceeded for user ID 17362949. If you reach out to GitHub Support for help, please include the request ID 1926:256D32:3E4F0BB:3E0A756:6ABAC244 and timestamp 2026-09-28 19:38:44 UTC. For more on scraping GitHub and how it may affect your rights, please review our Terms of Service (https:\/\/docs.github.com\/en\/site-policy\/github-terms\/github-terms-of-service)",
[core]     |    "documentation_url": "https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api#rate-limiting",
[core]     |    "status": "403"
[core]     | }
[core]     | 
[core]     | 2026-09-28 19:38:45 9fb64a4c1abb insert_facade_contributors[252] INFO 
[core]     | 
[core]     | 
[core]     | API rate limit exceeded. Key resets in 2825 seconds. Informing key manager that key is expired
[keyman]   | 2026-09-28 19:38:45,050 - KeyOrchestrator - DEBUG - EXPIRE; from: 252, platform: github_rest
[core]     | 2026-09-28 19:38:45 9fb64a4c1abb insert_facade_contributors[252] ERROR The same key was returned after a request to expire it was sent (key:

something seems to be triggering a rate limit message without affecting the available quota from the rate_limits api

Lingua principale
Python
Stelle
18
Fork
33
Merge medio
2g 16h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di chaoss/CollectOSS

Tutte le issue di chaoss/CollectOSS

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.