Page MenuHomePhabricator

ba.wikibooks.org REST API seems broken
Closed, ResolvedPublic

Description

It seems to me that the Parsoid API does not work properly for ba.wikibooks.org.

Example:
1 - https://ba.wikibooks.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%B4%D3%99%D1%80%D0%B5%D1%81%D0%BB%D0%B5%D0%BA:%D0%91%D0%B0%D1%88_%D0%B1%D0%B8%D1%82 is the welcome page of ba.wikibooks.org and works fine
2 - but https://ba.wikibooks.org/api/rest_v1/page/html/%D0%92%D0%B8%D0%BA%D0%B8%D0%B4%D3%99%D1%80%D0%B5%D1%81%D0%BB%D0%B5%D0%BA:%D0%91%D0%B0%D1%88_%D0%B1%D0%B8%D1%82 gives me the following JSON

{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route","title":"Not found.","method":"get","uri":"/ba.wikibooks.org/v1/page/html/%D0%92%D0%B8%D0%BA%D0%B8%D0%B4%D3%99%D1%80%D0%B5%D1%81%D0%BB%D0%B5%D0%BA%3A%D0%91%D0%B0%D1%88_%D0%B1%D0%B8%D1%82"}

instead of the page HTML.

Details

Related Gerrit Patches:
mediawiki/services/restbase/deploy : masterConfig: Add bawikibooks

Related Objects

Event Timeline

Kelson created this task.Mar 29 2018, 3:10 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 29 2018, 3:10 PM
mobrovac claimed this task.Mar 29 2018, 4:57 PM
mobrovac triaged this task as Medium priority.
mobrovac added a project: Services (doing).
mobrovac added a subscriber: mobrovac.

For some reason bawikibooks is not in RESTBase's list of domains at all. Patch coming up.

Change 422964 had a related patch set uploaded (by Mobrovac; owner: Mobrovac):
[mediawiki/services/restbase/deploy@master] Config: Add bawikibooks

https://gerrit.wikimedia.org/r/422964

Change 422964 merged by Mobrovac:
[mediawiki/services/restbase/deploy@master] Config: Add bawikibooks

https://gerrit.wikimedia.org/r/422964

Mentioned in SAL (#wikimedia-operations) [2018-03-29T17:05:14Z] <mobrovac@tin> Started deploy [restbase/deploy@af592d6]: Add bawikibooks - T191033

Mentioned in SAL (#wikimedia-operations) [2018-03-29T17:35:49Z] <mobrovac@tin> Finished deploy [restbase/deploy@af592d6]: Add bawikibooks - T191033 (duration: 30m 35s)

Thank you all for the quick and adapted answer. It works well and we finally have been able to create the ZIM of ba.wikibooks.org successfully.