Page MenuHomePhabricator

Flow\Exception\NoParserException when reading or editing flow board
Open, Needs TriagePublicPRODUCTION ERROR

Description

Error message
[YBHOSQpAAMAAAhVRoXwAAAEO] Caught exception of type Flow\Exception\NoParserException
Impact

Can't read (click on Edit button to see wikicode) nor save (using API) this specific Flow board.
https://fr.wikipedia.org/wiki/Discussion_utilisateur:Signimu

Notes

Looks a resurrection of T249705: Intermittent internal API errors with Flow. Hence boldly cc-ing @kostajh.

Details

Request ID
YBHOSQpAAMAAAhVRoXwAAAEO
Request URL
https://fr.wikipedia.org/w/api.php?action=flow&format=json&submodule=view-header&uselang=fr&page=Discussion_utilisateur%3ASignimu&vhformat=wikitext
Stack Trace
2021-01-27 20:34:17 [YBHOSQpAAMAAAhVRoXwAAAEO] mw1388 frwiki 1.36.0-wmf.27 exception ERROR: [YBHOSQpAAMAAAhVRoXwAAAEO] /w/api.php?action=flow&format=json&submodule=view-header&uselang=fr&page=Discussion_utilisateur%3ASignimu&vhformat=wikitext   Flow\Exception\NoParserException: Request to parsoid for "html" to "wikitext" conversion of content connected to title "Discussion_utilisateur:Signimu" failed: 404 {"exception_id":"YBHOSQpAAMAAAhVRoXwAAAEO","exception_url":"/w/api.php?action=flow&format=json&submodule=view-header&uselang=fr&page=Discussion_utilisateur%3ASignimu&vhformat=wikitext","caught_by":"entrypoint"} 
[Exception Flow\Exception\NoParserException] (/srv/mediawiki/php-1.36.0-wmf.27/extensions/Flow/includes/Conversion/Utils.php:172) Request to parsoid for "html" to "wikitext" conversion of content connected to title "Discussion_utilisateur:Signimu" failed: 404
  #0 /srv/mediawiki/php-1.36.0-wmf.27/extensions/Flow/includes/Conversion/Utils.php(66): Flow\Conversion\Utils::parsoid(string, string, string, Title)
  #1 /srv/mediawiki/php-1.36.0-wmf.27/extensions/Flow/includes/Model/AbstractRevision.php(433): Flow\Conversion\Utils::convert(string, string, string, Title)
  #2 /srv/mediawiki/php-1.36.0-wmf.27/extensions/Flow/includes/Templating.php(159): Flow\Model\AbstractRevision->getContent(string)
  #3 /srv/mediawiki/php-1.36.0-wmf.27/extensions/Flow/includes/Formatter/RevisionFormatter.php(289): Flow\Templating->getContent(Flow\Model\Header, string)
  #4 /srv/mediawiki/php-1.36.0-wmf.27/extensions/Flow/includes/Block/HeaderBlock.php(331): Flow\Formatter\RevisionFormatter->formatApi(Flow\Formatter\FormatterRow, DerivativeContext)
  #5 /srv/mediawiki/php-1.36.0-wmf.27/extensions/Flow/includes/Block/HeaderBlock.php(229): Flow\Block\HeaderBlock->renderRevisionApi(string)
  #6 /srv/mediawiki/php-1.36.0-wmf.27/extensions/Flow/includes/Api/ApiFlowBaseGet.php(33): Flow\Block\HeaderBlock->renderApi(array)
  #7 /srv/mediawiki/php-1.36.0-wmf.27/extensions/Flow/includes/Api/ApiFlow.php(108): Flow\Api\ApiFlowBaseGet->execute()
  #8 /srv/mediawiki/php-1.36.0-wmf.27/includes/api/ApiMain.php(1612): Flow\Api\ApiFlow->execute()
  #9 /srv/mediawiki/php-1.36.0-wmf.27/includes/api/ApiMain.php(592): ApiMain->executeAction()
  #10 /srv/mediawiki/php-1.36.0-wmf.27/includes/api/ApiMain.php(563): ApiMain->executeActionWithErrorHandling()
  #11 /srv/mediawiki/php-1.36.0-wmf.27/api.php(90): ApiMain->execute()
  #12 /srv/mediawiki/php-1.36.0-wmf.27/api.php(45): wfApiMain()
  #13 /srv/mediawiki/w/api.php(3): require(string)
  #14 {main}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Can someone import from logstash stack trace linked to this Request ID before it disappear?

Parsoid returns an http status code unequal to 200, which seems 404 here. That is not a Flow fault and needs some investigation on parsoid site?

Request is:

		$url = '/restbase/local/v1/transform/' . $from . '/to/' . $to . '/' .
			urlencode( $prefixedDbTitle );
		$request = [
			'method' => 'POST',
			'url' => $url,
			'body' => $params,
			'headers' => [
				'Accept' =>
					sprintf(
						'text/html; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/HTML/%s"',
						self::PARSOID_VERSION
					),
				'User-Agent' => 'Flow-MediaWiki/' . MW_VERSION,
			],
		];

When requesting the api, the exception is still shown, but it works for other pages on frwiki - https://fr.wikipedia.org/w/api.php?action=flow&format=json&submodule=view-header&uselang=fr&page=Discussion_utilisateur%3ANemo_Le_Poisson&vhformat=wikitext

https://fr.wikipedia.org/wiki/Discussion_utilisateur:Signimu
https://fr.wikipedia.org/wiki/Discussion_utilisateur:Nemo_Le_Poisson

The discussion page looks longer than the other page. Maybe it more about a timeout on parsoid site not reporting correctly back to flow. But it showing up on index.php

Tgr added a subscriber: Tgr.

Seems like there's nothing to do here on the Flow side. Let us know if that's incorrect.