Page MenuHomePhabricator

Invariant failed: Bad UTF-8 at end of string (2 byte sequence)
Open, Needs TriagePublic

Description

Error

MediaWiki version: 1.35.0-wmf.14

message
Invariant failed: Bad UTF-8 at end of string (2 byte sequence)

Impact

Notes

Maybe should have been addressed as part of T237318

Details

Request ID
XhUcygpAAEYAAEyA0vQAAABJ
Request URL
https://sr.wiktionary.org/w/rest.php/sr.wiktionary.org/v3/page/pagebundle/%D1%80%D0%B8%D0%B1%D0%B8/582328
Stack Trace
exception.trace
#0 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Utils/PHPUtils.php(238): Wikimedia\Assert\Assert::invariant(boolean, string)
#1 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Wt2Html/PP/Processors/WrapSections.php(33): Parsoid\Utils\PHPUtils::safeSubstr(string, integer, integer)
#2 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Wt2Html/PP/Processors/WrapSections.php(329): Parsoid\Wt2Html\PP\Processors\WrapSections->getSrc(Parsoid\Wt2Html\PageConfigFrame, integer, integer)
#3 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Wt2Html/PP/Processors/WrapSections.php(452): Parsoid\Wt2Html\PP\Processors\WrapSections->resolveTplExtSectionConflicts(array)
#4 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Wt2Html/DOMPostProcessor.php(151): Parsoid\Wt2Html\PP\Processors\WrapSections->run(DOMElement, Parsoid\Config\Env, array, boolean)
#5 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Wt2Html/DOMPostProcessor.php(829): Parsoid\Wt2Html\DOMPostProcessor->Parsoid\Wt2Html\{closure}(DOMElement, Parsoid\Config\Env, array, boolean)
#6 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Wt2Html/DOMPostProcessor.php(882): Parsoid\Wt2Html\DOMPostProcessor->doPostProcess(DOMDocument)
#7 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Wt2Html/DOMPostProcessor.php(899): Parsoid\Wt2Html\DOMPostProcessor->process(DOMDocument)
#8 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Wt2Html/ParserPipeline.php(148): Parsoid\Wt2Html\DOMPostProcessor->processChunkily(string, array)
#9 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Wt2Html/ParserPipeline.php(198): Parsoid\Wt2Html\ParserPipeline->parseChunkily(string, array)
#10 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Wt2Html/ParserPipelineFactory.php(299): Parsoid\Wt2Html\ParserPipeline->parseToplevelDoc(string, array)
#11 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/WikitextContentModelHandler.php(78): Parsoid\Wt2Html\ParserPipelineFactory->parse(string)
#12 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Parsoid.php(96): Parsoid\WikitextContentModelHandler->toHTML(Parsoid\Config\Env)
#13 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/src/Parsoid.php(127): Parsoid\Parsoid->parseWikitext(MWParsoid\Config\PageConfig, array)
#14 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/extension/src/Rest/Handler/ParsoidHandler.php(586): Parsoid\Parsoid->wikitext2html(MWParsoid\Config\PageConfig, array, NULL)
#15 /srv/deployment/parsoid/deploy-cache/revs/45a4245d5f122ee190adf5465b36c4741c8bd330/src/extension/src/Rest/Handler/PageHandler.php(52): MWParsoid\Rest\Handler\ParsoidHandler->wt2html(Parsoid\Config\Env, array)
#16 /srv/mediawiki/php-1.35.0-wmf.14/includes/Rest/Router.php(314): MWParsoid\Rest\Handler\PageHandler->execute()
#17 /srv/mediawiki/php-1.35.0-wmf.14/includes/Rest/Router.php(285): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\PageHandler)
#18 /srv/mediawiki/php-1.35.0-wmf.14/includes/Rest/EntryPoint.php(111): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#19 /srv/mediawiki/php-1.35.0-wmf.14/includes/Rest/EntryPoint.php(78): MediaWiki\Rest\EntryPoint->execute()
#20 /srv/mediawiki/php-1.35.0-wmf.14/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#21 /srv/mediawiki/w/rest.php(3): require(string)
#22 {main}