Download statistics page shows "not available" for GitHub-hosted releases
I maintainer di solito rispondono entro 1 giorno
@miaulalala ci sta già lavorando.
Dal 1/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
The new download statistics page from #1796 (/apps/<id>/downloads) shows "— not available" for every release of my app, although all releases are GitHub release assets and GitHub reports counts for them.
App: extended_occweb, checked 2026-10-01
| Version | Download URL in the store | Page shows | GitHub API download_count |
|---|---|---|---|
| 0.4.7 | https://github.com/dillardblom/occweb/releases/download/v0.4.7/extended_occweb-0.4.7.tar.gz |
not available | 27 |
| 0.4.6 | …/releases/download/v0.4.6/extended_occweb-0.4.6.tar.gz |
not available | 21 |
| 0.4.5 | …/releases/download/v0.4.5/extended_occweb-0.4.5.tar.gz |
not available | 7 |
The URLs match _GITHUB_RELEASE_URL_RE, and the asset names returned by GET /repos/dillardblom/occweb/releases are exactly the file names in the URLs, so the lookup in get_download_counts() should find them. The repository is public.
That leaves the GitHub API call itself. get_download_counts() catches every requests.RequestException and silently returns None for all releases, so any failure looks like this. A likely cause, from reading the code:
GITHUB_API_TOKENdefaults toNone. Without a token, GitHub allows 60 requests per hour per IP, shared by everything on the app store server.- Each view of the page, and each call to the API endpoint, makes at least two uncached requests (
get_releases()keeps paging until it gets an empty page).
So the limit would be used up quickly once a few developers open the page.
Suggestions:
- Configure
GITHUB_API_TOKENin production, if it isn't set yet (5,000 requests/hour). - Cache the counts per repository for some minutes.
- Stop paging when a page has fewer than
per_pageitems, which saves one request per view in the common case. - Log the exception instead of passing silently, so this shows up in the server logs.
I can't see the server logs, so the rate limit is an educated guess; the log line from (4) would confirm or rule it out.
- Lingua principale
- Python
- Stelle
- 398
- Fork
- 180
- Merge medio
- 3g 14h
- PR unite (30g)
- 10
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 nextcloud/appstore
-
Releases Page rework (improvements for mobile + more)Forse già presa @joshuabke l’ha presa 10 giorni fa. Apertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
nextcloud/appstore#1965 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
nextcloud/appstore#1951 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
nextcloud/appstore#1948 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
nextcloud/appstore#1914 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug priority: high
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
nextcloud/appstore#1913 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nextcloud/appstore
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug] vllm-sr config migrate drops providers.models[].deploymentForse già presa @Bevisy l’ha presa oggi. Apertaneeds-acceptance wg/developer-experience-ecosystem
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
vllm-project/semantic-router#5996 ·
I maintainer di solito rispondono entro 2 giorni
-
bugfix low-priority plugin:abstract plugin:leyline small-effort source:discussion
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
athola/claude-night-market#1132 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
WeblateOrg/language-data#2773 ·
I maintainer di solito rispondono entro 1 giorno
-
[yugabyted] xcluster set_up and add_to_replication fail for database names containing - . or (Apertakind/bug priority/medium qa_automation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
yugabyte/yugabyte-db#37324 ·
I maintainer di solito rispondono entro 1 giorno