The mostviewed generator is not returning anything: https://en.wikipedia.org/w/api.php?action=query&generator=mostviewed&prop=pageviews
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T208197 ContentTranslation relies on recommendation-api running on Cloud VPS | |||
Resolved | santhosh | T254143 Recommendation api always returns 404 when seed article is not supplied | |||
Open | None | T254211 mostviewed generator not returning any results |
Event Timeline
Looks like it's returning stuff to me, I see top pages with their pageviews for the past days, though I'm not super familiar with how this is queried from the action API. Just a blip or something else to do here? Also, if there was anything here, maybe the action API is forcing some dates that our pageviews API doesn't yet have data for. So maybe it was a beginning of the month type problem?
Hmm, it's still not working on French Wikipedia: https://fr.wikipedia.org/w/api.php?action=query&generator=mostviewed&prop=pageviews
This is what I get:
{ "batchcomplete": "" }
The pageview api works fine, https://wikimedia.org/api/rest_v1/metrics/pageviews/top/fr.wikipedia.org/all-access/2020/05/all-days so issue is likely in the glue code with the php api
My guess is they're both fine and caching is to blame, but I'm not sure how to dig through the cache behind the API. Opening and putting on Radar. We should find someone to ping about caching. So my stab-in-the-dark is:
- first of the month happens, pageview API takes a little longer than usual to get latest top results
- action API queries the pageview API and gets nothing, caches an empty result
- cache persists for a while, resulting in what @bmansurov is reporting
Maaybe what we could do is tell the action API to forward the pageview API error (which is a 404 if there's no data)