Page MenuHomePhabricator

500 error when translating into be-tarask
Closed, ResolvedPublicBUG REPORT

Description

From OTRS: https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=11289648

Hello. there is a bug when I want to translate articles' descriptions into Belarusian taraskevic language. This problem happens always (I cannot translate even one description). the screenshot is attached.

Screenshot_20200124_110701_org.wikipedia.jpg (1×720 px, 168 KB)

Event Timeline

Dbrant subscribed.

So this is a bit tricky:
I've fixed the actual error, since we were using the outdated language code be-x-old instead of the newer be-tarask, but this actually doesn't solve the underlying issue, which is that the server itself never seems to give any candidate articles for translation into Belarusian. Since no articles are given, the user will just see the spinning progress bar indefinitely. This might need to be dug into by #product-infrastructure-team-backlog

Change 571839 had a related patch set uploaded (by Mholloway; owner: Michael Holloway):
[mediawiki/services/recommendation-api@master] Improve conversion of language codes to wiki DB names

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

The catch in this case was that the DB name for be-tarask Wikipedia remains be_x_oldwiki, which was throwing off some of our API queries and result filtering. With the above patch, /description/translation/from/en/to/be-tarask returns a good number of results.

Assuming this task is about Recommendation-API, hence adding project tag so others can find this task when searching for tasks under that project.

Change 571839 merged by jenkins-bot:
[mediawiki/services/recommendation-api@master] Improve conversion of language codes to wiki DB names

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

Mholloway renamed this task from 500 error when translating into a language to 500 error when translating into be-tarask.Mar 5 2020, 11:09 PM