Page MenuHomePhabricator

CX initialization failed
Closed, DuplicatePublic

Description

  1. https://es.wikipedia.org/wiki/Special:ContentTranslation?title=Especial:Traducci%C3%B3n_de_contenidos&campaign=contributionsmenu&to=es&from=en&page=O+Street+Market&targettitle=O+Street+Market
  2. Start translating.

Actual result:

Screenshot 2021-10-11 at 03.31.27.png (2,682×1,326 px, 330 KB)

It is not clear to me what the user should look at or what they should do or wait for.

  • The page layout looks broken. The personal menu is squished to the left, with a big white panel on the top right stating "This is an ongoing translation" with a grey button to start anew.
  • The main area of the page has a spinner that says "Loading" but never ends.
  • The main area is greyed with with a greyed out error stating:
Error page message
Critical error: Content translation failed to load due to an internal error.

Other information:

Browser console
[CX] Translation initialization failed.
 at initializationError()
Network: CX
Request URL: GET https://cxserver.wikimedia.org/v2/page/en/es/O_Street_Market

Response:
200 OK
content-type application/json; charset=utf-8

{
  "sourceLanguage": "en",
  "title": "O_Street_Market",
  "revision": "1015021854",
  "segmentedContent": "\n<html about=\"https://en.wikipedia.org/wiki/Special:Redirect/revision/1015021854\" id=\"0\" prefix=\"dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/\"><head id=\"1\" prefix=\"mwr: https://en.wikipedia.org/wiki/Special:Redirect/\">
…
<link about=\"#mwt408\" href=\"./Category:Commons_category_link_is_on_Wikidata\" rel=\"mw:PageProp/Category\" /><span about=\"#mwt408\"> at Wikimedia Commons</span></li></ul>\n\n\n\n\n\n\n\n\n</section></body></html>",
  "categories": [
    {
      "adapted": true,
      "sourceTitle": "Category:Coordinates on Wikidata",
      "targetTitle": "Categoría:Wikipedia:Artículos con coordenadas en Wikidata"
    },
    {
      "adapted": false,
      "sourceTitle": "Category:Articles using NRISref without a reference number"
    },
    {
      "adapted": false,
      "sourceTitle": "Category:1881 establishments in Washington, D.C."
    },
    {
      "adapted": false,
      "sourceTitle": "Category:Commercial buildings completed in 1881"
    },
    {
      "adapted": false,
      "sourceTitle": "Category:Commercial buildings on the National Register of Historic Places in Washington, D.C."
    },
    {
      "adapted": false,
      "sourceTitle": "Category:Gothic Revival architecture in Washington, D.C."
    },
    {
      "adapted": false,
      "sourceTitle": "Category:Mixed-use developments in the Baltimore-Washington metropolitan area"
    },
    {
      "adapted": false,
      "sourceTitle": "Category:Rebuilt buildings and structures in the United States"
    },
    {
      "adapted": true,
      "sourceTitle": "Category:Retail markets in the United States",
      "targetTitle": "Categoría:Mercados de Estados Unidos"
    },
    {
      "adapted": false,
      "sourceTitle": "Category:Shaw (Washington, D.C.)"
    }
  ]
}
Network: API query
https://es.wikipedia.org/w/api.php?action=query&format=json&list=contenttranslation&sourcetitle=O Street Market&from=en&to=es

200 OK
content-type application/json; charset=utf-8

{"batchcomplete": "", "query": {
    "contenttranslation": {
      "translation": {
        "id": 1398641,
        "sourceTitle": "O Street Market",
        "targetTitle": "O Street Market",
        "sourceLanguage": "en",
        "targetLanguage": "es",
        "sourceRevisionId": "1015021854",
        "targetRevisionId": null,
        "sourceURL": "//en.wikipedia.org/wiki/O Street Market",
        "targetURL": null,
        "status": "draft",
        "startTimestamp": "20211007044519",
        "lastUpdateTimestamp": "20211007044637",
        "progress": "{\"any\":0.7948717948717948,\"mt\":1,\"human\":0}",
        "startedTranslator": "1175393",
        "lastUpdatedTranslator": "1175393",
        "cxVersion": 2,
        "translatorName": "Pedro Felipe",
        "translatorGender": "unknown"
      }
  }
} }

Event Timeline

I found this when based on following the URL for one of the samples of T279215: TypeError: content.parts is undefined.

This is a limitation of the tool preventing multiple users to translate the same article for the same language pairs. We plan to work on a solution for this (T298244) that will cover the issue described in this ticket. So I'll be merging those.

Thanks for the additional details!