Page MenuHomePhabricator

Citoid returns "HyperSwitch/errors/*" for all citations
Closed, InvalidPublic

Description

Shell
urbanecm@notebook  ~
$ curl 'https://en.wikipedia.org/api/rest_v1/data/citation/mediawiki/https%3A%2F%2Fwww.idnes.cz%2Fekonomika%2Fdomaci%2Feet-treti-vlna-remeslnici.A190916_152909_ekonomika_fih?action=query&format=json' && echo
{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/unknown_error","method":"get","uri":"/en.wikipedia.org/v1/data/citation/mediawiki/https%3A%2F%2Fwww.idnes.cz%2Fekonomika%2Fdomaci%2Feet-treti-vlna-remeslnici.A190916_152909_ekonomika_fih"}
urbanecm@notebook  ~
$ curl 'https://en.wikipedia.org/api/rest_v1/data/citation/mediawiki/978-80-7442-061-0?action=query&format=json' && echo
{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found","title":"Not found.","method":"get","uri":"/en.wikipedia.org/v1/data/citation/mediawiki/978-80-7442-061-0"}
urbanecm@notebook  ~
$ curl 'https://en.wikipedia.org/api/rest_v1/data/citation/mediawiki/978-80-7362-538-2?action=query&format=json' && echo
{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found","title":"Not found.","method":"get","uri":"/en.wikipedia.org/v1/data/citation/mediawiki/978-80-7362-538-2"}
urbanecm@notebook  ~
$

Also see https://martin.urbanec.cz/files/screencasts/citoid_bug_noload.webm.

Event Timeline

Urbanecm triaged this task as Unbreak Now! priority.Sep 16 2019, 2:34 PM

Since it breaks all citations AFAICS, triaging as UBN.

mobrovac lowered the priority of this task from Unbreak Now! to Medium.
mobrovac subscribed.

The URL does not support query parameters. curl https://en.wikipedia.org/api/rest_v1/data/citation/mediawiki/https%3A%2F%2Fwww.idnes.cz%2Fekonomika%2Fdomaci%2Feet-treti-vlna-remeslnici.A190916_152909_ekonomika_fih returns 200 with a valid response.

Well, I copied that URL from network tab, as it was requested by VisualEditor... Anyway, seems to work now.