Gem may fail if a user has a repository with many contributors
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia con /_layouts/base.html e con la richiesta dei contributors mostrata nell’errore di build, quindi esamina come viene gestita la risposta della GitHub API. Riproduci il 403 sul repository indicato e verifica che il sito venga compilato correttamente quando l’elenco dei contributors è troppo grande.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Ruby
- Stelle
- 1.9k
- Fork
- 363
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/pages-gem
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
Tutte le issue di github/pages-gem
Issue simili
-
security
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
IBM/aspera-cli#265 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
I maintainer di solito rispondono entro 3 giorni
-
[Bug]: QR Code do Evolution Go não aparece no CRM com Evolution Go 0.7.2 (campos em minúsculo)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
evolution-foundation/evo-ai-crm-community#423 ·
I maintainer di solito rispondono entro 1 giorno