Page MenuHomePhabricator

Parsoid gives an unspecified timeout error for certain content
Closed, ResolvedPublic

Description

<p data-parsoid="{&quot;dsr&quot;:[12727,14747,0,0]}"><span><span about="#mwt37" class="reference" data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;id&quot;:&quot;mw-reference-text-cite_note-13&quot;},&quot;attrs&quot;:{}}" data-parsoid="{&quot;dsr&quot;:[12988,13167,5,6]}" id="cxcite_ref-13" rel="dc:references" typeof="mw:Extension/ref" data-sourceid="cite_ref-13"></span></span></p>

Event Timeline

Nikerabbit raised the priority of this task from to Needs Triage.
Nikerabbit updated the task description. (Show Details)
Nikerabbit added subscribers: Nikerabbit, santhosh.

@Nikerabbit, I don't understand the title of the ticket -- "unspecified itmeout error"

But, note that this fragment will not serialize on its own because <ref>.data-mw.body.id refers to a DOM element and the serializer needs to be able to look up what that is.

Sorry I should have been clearer. If I paste the above snippet to http://parsoid-lb.eqiad.wikimedia.org/enwiki/ it takes 30 seconds (I suppose this is some kind of timeout) until it returns Error 503 Service Unavailable.

This is a "minimal" snippet of a full html cxserver is trying to convert to wikitext, failing, and thus publishing of a translation fails.

I would like to see better error messages from parsoid, and preferable faster as well ;) That would make debugging our publishing errors much easier.

The varnish req-restart thing is about handling various anomalous error cases in a better way. It doesn't absolve the underlying backends from trying to not do erroneous things in the first place...

@BBlack This is one of those "anomalous error cases". See https://phabricator.wikimedia.org/T97206#1257608

If I paste the above snippet in local parsoid instance, it returns immediately with a descriptive 500 error, as requested. In production however, the back-and-forth in Varnish takes the extra 30s and returns Varnish's 503 error page.

Can you please confirm that this is indeed blocked on that task?

Amire80 renamed this task from Unspecified timeout error for certain content to Parsoid gives an unspecified timeout error for certain content.Jul 2 2015, 9:36 PM
Amire80 moved this task from Backlog to Bugs on the ContentTranslation-Release6 board.

@Nikerabbit, @santhosh, @Arlolra - is this still relevant? Is this in CX or in Parsoid?

I believe Santhosh has investigated and fixed this.

@santhosh, can you please close it if it's done or update the status?

This is very old one. Lot of improvement done on this part and haven't seen anything going wrong related to this.