Page MenuHomePhabricator

Content Translation does not publish the translation
Open, HighPublic

Description

I used Content Translation, hit the "Publish translation". But the publication did not take place. Thus appeared the inscription:"При публикации перевода произошла ошибка. Пожалуйста, попробуйте опубликовать страницу ещё раз. Ошибка: Error converting HTML to wikitext: docserver-http: HTTP 400 ". The translation is:" When you publish a translation error occurred. Please try to publish the page again. Error: Error converting HTML to wikitext: docserver-http: HTTP 400".

See also: https://www.mediawiki.org/wiki/Topic:Tk3wth4pc03wj1gn

Event Timeline

Thank you! Works, topic can be closed.

Thank you! Works, topic can be closed.

Again the same thing. That is not working.

At which article does this happen?

Several users report a similar problem arising from time to time.
https://ru.wikipedia.org/w/index.php?title=%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%A4%D0%BE%D1%80%D1%83%D0%BC/%D0%A2%D0%B5%D1%85%D0%BD%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9&oldid=86276285#.D0.A7.D1.82.D0.BE_.D1.81_.D0.B0.D0.B2.D1.82.D0.BE.D0.BF.D0.B5.D1.80.D0.B5.D0.B2.D0.BE.D0.B4.D1.87.D0.B8.D0.BA.D0.BE.D0.BC.3F

User LGB report that "https://en.wikipedia.org/wiki/Special:Redirect/revision/759901751 When you try to publish the same message is displayed
При публикации перевода произошла ошибка. Пожалуйста, попробуйте опубликовать страницу ещё раз. Ошибка: Error converting HTML to wikitext: docserver-http: HTTP 400
But two days later, when he try to publish in a user namespace instead of the main ns, everything worked fine.
In the spring there was a similar case."

User Tatewaki reports that he too received this message several times.
For now so stuck translations (Tatewaki): en:Masahide Ōta, en:Princess Pingyang, en:Martha Karua --> ruPW. And there was a problem with https://ru.wikipedia.org/wiki/%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Tatewaki/%D0%9B%D0%B0%D0%B3%D1%83,_%D0%A0%D0%B8%D0%BC%D0%B0 but resolved through publication in user ns.

There are multiple reports at mw.org as well. I tried to point all the threads I found to this task.

Here is a screenshot that makes me wonder, could there be a problem with MT, Apertium in particular? The user who made https://it.wikipedia.org/wiki/Utente:Fringio/Sergio_Hern%C3%A1ndez_(actor) says he couldn't even save if he used Apertium's provided translation.

The same thing happens to me when translating the article "Self-efficacy" from English to Spanish, I get the following

  • Error: Error: Error converting HTML to wikitext: docserver-http: HTTP 400.

What can we do?

could there be a problem with MT, Apertium in particular?

Possible, but please remember it also happens to those of us who use the Yandex translation, which is not based on Apertium as such, I believe. (see reports at mediawiki.org).

I found a partial solution, which solved my problem. Do not use Apertium, just use the Yandex translation. So I managed to publish the article: Autoeficacia.

@santhosh , it'd be useful to understand which articles you've examined so far, as there were so many reports and I can't know which links you followed.

Here's another example from mw.prg:

This error message don't allows to publish my translation

Error converting HTML to wikitext: docserver-http: HTTP 400

Translating this page from English To spanish: https://en.wikipedia.org/wiki/Disability-adjusted_life_year

the problem is when trying to translate the section "See also", it appears on the translation with unknow symbol, and I can't delete this section from the translation now.

I could reproduce the issue now. It was tricky.

The issue happens with template adaptation. Failed template adaptation causes markup like <span typeof="mw:Transclusion'> without data-mw or about parameters. Parsoid will crash on such invalid HTML and give 400. The root cause for failure was cxserver HTML sanitization in MT api blacklisting the about attribute and removing it. Without about attribute, data-mw cannot be copied from source section.

image.png (636×1 px, 700 KB)

In cxserver had rectified this issue https://gerrit.wikimedia.org/r/#/c/381960/ eventhough the intention was not fixing this. Deploying cxserver master to production should fix template adaptation and publishing error.

Change 387783 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] CX1: Check for template adaptation failures before publishing

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

Deploying cxserver master to production should fix template adaptation and publishing error.

Also for existing translations or only new ones?

Edit: I assume your patch is there for existing ones.

Change 387783 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] CX1: Check for template adaptation failures before publishing

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

Change 387996 had a related patch set uploaded (by KartikMistry; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@wmf/1.31.0-wmf.6] CX1: Check for template adaptation failures before publishing

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

Change 387996 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@wmf/1.31.0-wmf.6] CX1: Check for template adaptation failures before publishing

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

Mentioned in SAL (#wikimedia-operations) [2017-11-02T13:35:43Z] <zfilipin@tin> Synchronized php-1.31.0-wmf.6/extensions/ContentTranslation/modules/publish/ext.cx.publish.js: SWAT: [[gerrit:387996|CX1: Check for template adaptation failures before publishing (T154116)]] (duration: 00m 50s)

Should this fix work for older articles that ended up being unloadable (grey overlay when loading, the three dots on top blinking ad nauseam, publish button greyed out)? If it should - it didn't in my case.

Should this fix work for older articles that ended up being unloadable (grey overlay when loading, the three dots on top blinking ad nauseam, publish button greyed out)? If it should - it didn't in my case.

No. that is not the issue we fixed. Do we have a ticket for the issue you mentioned? if not we should have one and investigate.

@santhosh , I just published it under a new ticket to more easily distinguish the problems. T179997

Vito-Genovese subscribed.

Apparently this issue has not been fully resolved, as a fellow trwiki user has informed me that he encountered the issue while trying to translate the enwiki article on Makhmud Esambayev and the said error was displayed when he tried to publish the translation.

The full error message is as follows:

Unknown unrecoverable error has occurred. Error details: Error converting HTML to wikitext: docserver-http: HTTP 400: {"type":"https://mediawiki.org/wiki/HyperSwitch/errors/unknown_error","method":"post","uri":"/tr.wikipedia.org/v1/transform/html/to/wikitext/Makhmud_Esambayev"}

The issue has been reported again for a translation of the enwiki article on Ruslan Abışov into Turkish.

According to Runa, "It seems like a momentary problem with parsoid. We will keep watch for any repeats. Usually, in such scenarios, people can try again and publish soon after."

According to Runa, "It seems like a momentary problem with parsoid. We will keep watch for any repeats. Usually, in such scenarios, people can try again and publish soon after."

I've been told that the the problem has persisted despite attempts days apart.

This comment was removed by Cgl02.

Hi,How should I solve this problem?

Unknown unrecoverable error has occurred. Error details: Error converting HTML to wikitext: docserver-http: HTTP 400:

@Amire80 What's the followup question for the above and the comments recently left at https://www.mediawiki.org/wiki/Topic:Tk3wth4pc03wj1gn? TY.

I found exact place where the error occured.

I was translating "Angel tube station" from enwiki to ruwiki and got "Error converting HTML to wikitext: docserver-http: HTTP 400". Then I start to copy-paste sctions from CT to VisualEditor in ruwiki every time switching to text mode and back. On the section "Station rebuilding" I got HTTP 400 error from Visual Editor. This section contains this source code wich cause error:

system.{{#tag:ref|This rebuilding technique was also applied on Euston's Bank branch platforms.<ref name=angel />|group=note}} The lifts

This text is not visible in translated part, I see only additional space. This code prevents from conversion to wikitext in Translation debugger too, so I cannot get source code from there.

I removed this part from translated section but still cannot publish. There are four note tags, so I cleared all translated sections with notes in source and voila translation had published!

Removing task assignee due to inactivity, as this open task has been assigned for more than two years (see emails sent to assignee on May26 and Jun17, and T270544). Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be very welcome!

(See https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator.)