Gem may fail if a user has a repository with many contributors
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
- 35/100
Hướng nghiên cứu
Bắt đầu với /_layouts/base.html và yêu cầu contributors được hiển thị trong lỗi build, sau đó xem xét cách phản hồi của GitHub API được xử lý. Tái hiện lỗi 403 đối với repository được liệt kê và xác minh rằng site vẫn build thành công khi danh sách contributors quá lớn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Before submitting an issue, please be sure to
- Read the contributing instructions
- Update to the latest Gem version (run
bundle update github-pages)
This issue affects
- The site generated by GitHub Pages
- Building sites locally
The GitHub Pages Gem is intended to help users replicate the GitHub Pages build environment locally. If your issue affects both the hosted version and the version previewed locally, you may be better suited reporting seeking support in other forums.
What did you do (e.g., steps to reproduce)
Ran the Gem when generating a website at https://github.com/bkmgit/2024-05-06-uci-nnlm-online/tree/gh-pages with a fork of https://github.com/sched-ext/sched_ext in my userspace.
What did you expect to happen?
Expected the site to build.
What happened instead?
Site failed to build with log message:
Liquid Exception: GET https://api.github.com/repos/bkmgit/sched_ext/contributors?per_page=100: 403 - The history or contributor list is too large to list contributors for this repository via the API. // See: https://docs.github.com/rest/repos/repos#list-repository-contributors in /_layouts/base.html
/usr/local/bundle/gems/octokit-4.25.1/lib/octokit/response/raise_error.rb:14:in `on_complete': GET https://api.github.com/repos/bkmgit/sched_ext/contributors?per_page=100: 403 - The history or contributor list is too large to list contributors for this repository via the API. // See: https://docs.github.com/rest/repos/repos#list-repository-contributors (Octokit::Forbidden)
Error can be reproduced by calling
$ curl -L \
> -H "Accept: application/vnd.github+json" \
> -H "X-GitHub-Api-Version: 2022-11-28" \
> https://api.github.com/repos/sched_ext/sched_ext/contributors
Additional information
Initially reported at https://github.com/carpentries/workshop-template/issues/820
- Ngôn ngữ chính
- Ruby
- Star
- 1.9k
- Fork
- 361
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/pages-gem
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Error when building docker imageĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
-
index.htmlĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
Tất cả issue của github/pages-gem
Issue tương tự
-
Obsolete link to RubyMine docsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
rubocop/ruby-style-guide#984 ·
-
Dev Portal: Wizard refereshĐang mởinternal product:dev-portal release-docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Kong/developer.konghq.com#7393 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Unused stubs and fixturesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
fastlane/fastlane#30286 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
TheOdinProject/curriculum#31432 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/web interface
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày