Page MenuHomePhabricator

labels_with_language_fallback does not appear to work
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What should have happened instead?:

Should see "Douglas Adams" for both, if there is language fallback

Event Timeline

The /labels_with_language_fallback endpoint implements language fallbacks through http redirects, which means that, while the response body is indeed empty, it contains a Location header pointing you to the URL for the fallback label. You can tell curl to automatically follow redirects by using the -L option like so: curl -L 'https://www.wikidata.org/w/rest.php/wikibase/v1/entities/items/Q42/labels_with_language_fallback/en'.

Thank you for reporting this! It showed that this behavior isn't documented well at all and I've created a task to improve that: T384699.

Hi @AWesterinen, did Jakob's comment help you? We've meanwhile also finished the ticket to document this behaviour. If everything works well, we can close this ticket

Ifrahkhanyaree_WMDE claimed this task.

Haven't heard anything so considering this done and closing the ticket as part of cleaning up our board