API key status CLI does not match app behavior

Đang mở
#498 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, python
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
18
Fork
33
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của chaoss/CollectOSS

Tất cả issue của chaoss/CollectOSS

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.