openzim / mwoffliner

Mediawiki scraper: all your wiki articles in one highly compressed ZIM file
https://www.npmjs.com/package/mwoffliner
GNU General Public License v3.0
282 stars 72 forks source link

Why alecexposed.org is complaining about `No available desktop renderer.`? #2090

Open benoit74 opened 1 week ago

benoit74 commented 1 week ago

Zimfarm recipe: https://farm.openzim.org/recipes/alec_exposed

The last task (ran with dev right now, see close to a 1.14) fails with No available desktop renderer..

I don't get why, because all prerequisites are ok:

Working: https://www.alecexposed.org/w/api.php?action=parse&format=json&prop=text|modules|jsconfigvars|headhtml&formatversion=2&page=ALEC_Bills

Working with warning Unrecognized parameter: parsoid: https://www.alecexposed.org/w/api.php?action=parse&format=json&prop=text|modules|jsconfigvars|headhtml&formatversion=2&page=ALEC_Bills&parsoid=1

audiodude commented 5 days ago

I added some logging and I'm getting the following:

====== Error checking API availability: https://www.alecexposed.org/api/rest_v1/page/html/ALEC_Exposed
====== Error checking API availability: https://www.alecexposed.org/api/rest_v1/page/mobile-html/ALEC_Exposed
====== Error checking API availability: https://www.alecexposed.org/w/rest.php/v1/page/ALEC_Exposed/html

In fact all of those URLs are 404s.

So I'm not sure if the site is misconfigured and the endpoints are not enabled, or if mwoffliner is misconfigured and we're not looking for them in the right places.

As far as "ActionParse API", I don't see any references to that in the mwoffliner code and I'm not sure it's an API we work with.

benoit74 commented 5 days ago

Regarding "ActionParse API", I was refering to the name listed here.

REST API is indeed not available on this website, so it is normal these calls are returning 404.

But why none of the logs you get are referring to something like https://www.alecexposed.org/w/api.php?action=parse&format=json&...? Is there another place in the codebase to check?