Page MenuHomePhabricator

https://es.wikipedia.beta.wmflabs.org/ gives strange response
Closed, DuplicatePublicBUG REPORT

Description

List of steps to reproduce:
(1) Open http://es.wikipedia.beta.wmflabs.org/
(2) Open interwiki map from wpbeta-en: https://en.wikipedia.beta.wmflabs.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap&sifilteriw=local&format=jsonfm
(3) Fetch this url via Python requests library

What happens?:

(1) Instead of a start page it shows:

MediaWiki internal error.

Original exception: [YOCHR3Vn7C6n6OXJASSviQAAAAo] /wiki/P%C3%A1gina_principal InvalidArgumentException: $key must be a string or an array
Backtrace:
from /srv/mediawiki/php-master/includes/language/Message.php(240)
#0 /srv/mediawiki/php-master/includes/GlobalFunctions.php(1183): Message->__construct(integer)
#1 /srv/mediawiki/php-master/includes/context/RequestContext.php(476): wfMessage(integer)
#2 /srv/mediawiki/php-master/includes/context/ContextSource.php(198): RequestContext->msg(integer)
#3 /srv/mediawiki/php-master/includes/skins/Skin.php(2372): ContextSource->msg(integer)
#4 /srv/mediawiki/php-master/includes/skins/Skin.php(2495): Skin->makeLink(integer, array, array)
#5 /srv/mediawiki/php-master/includes/skins/SkinMustache.php(85): Skin->makeListItem(string, array)
#6 /srv/mediawiki/php-master/skins/Vector/includes/SkinVector.php(536): SkinMustache->getPortletData(string, array)
#7 /srv/mediawiki/php-master/includes/skins/SkinMustache.php(244): SkinVector->getPortletData(string, array)
#8 /srv/mediawiki/php-master/includes/skins/SkinMustache.php(199): SkinMustache->getPortletsTemplateData()
#9 /srv/mediawiki/php-master/skins/Vector/includes/SkinVector.php(275): SkinMustache->getTemplateData()
#10 /srv/mediawiki/php-master/includes/skins/SkinMustache.php(137): SkinVector->getTemplateData()
#11 /srv/mediawiki/php-master/includes/skins/SkinTemplate.php(147): SkinMustache->generateHTML()
#12 /srv/mediawiki/php-master/includes/OutputPage.php(2644): SkinTemplate->outputPage()
#13 /srv/mediawiki/php-master/includes/MediaWiki.php(939): OutputPage->output(boolean)
#14 /srv/mediawiki/php-master/includes/MediaWiki.php(952): MediaWiki::{closure}()
#15 /srv/mediawiki/php-master/includes/MediaWiki.php(559): MediaWiki->main()
#16 /srv/mediawiki/php-master/index.php(53): MediaWiki->run()
#17 /srv/mediawiki/php-master/index.php(46): wfIndexMain()
#18 /srv/mediawiki/w/index.php(3): require(string)
#19 {main}

Exception caught inside exception handler: [YOCHR3Vn7C6n6OXJASSviQAAAAo] /wiki/P%C3%A1gina_principal InvalidArgumentException: $key must be a string or an array
Backtrace:
from /srv/mediawiki/php-master/includes/language/Message.php(240)
#0 /srv/mediawiki/php-master/includes/GlobalFunctions.php(1183): Message->__construct(integer)
#1 /srv/mediawiki/php-master/includes/context/RequestContext.php(476): wfMessage(integer)
#2 /srv/mediawiki/php-master/includes/context/ContextSource.php(198): RequestContext->msg(integer)
#3 /srv/mediawiki/php-master/includes/skins/Skin.php(2372): ContextSource->msg(integer)
#4 /srv/mediawiki/php-master/includes/skins/Skin.php(2495): Skin->makeLink(integer, array, array)
#5 /srv/mediawiki/php-master/includes/skins/SkinMustache.php(85): Skin->makeListItem(string, array)
#6 /srv/mediawiki/php-master/skins/Vector/includes/SkinVector.php(536): SkinMustache->getPortletData(string, array)
#7 /srv/mediawiki/php-master/includes/skins/SkinMustache.php(244): SkinVector->getPortletData(string, array)
#8 /srv/mediawiki/php-master/includes/skins/SkinMustache.php(199): SkinMustache->getPortletsTemplateData()
#9 /srv/mediawiki/php-master/skins/Vector/includes/SkinVector.php(275): SkinMustache->getTemplateData()
#10 /srv/mediawiki/php-master/includes/skins/SkinMustache.php(137): SkinVector->getTemplateData()
#11 /srv/mediawiki/php-master/includes/skins/SkinTemplate.php(147): SkinMustache->generateHTML()
#12 /srv/mediawiki/php-master/includes/OutputPage.php(2644): SkinTemplate->outputPage()
#13 /srv/mediawiki/php-master/includes/exception/MWExceptionRenderer.php(158): OutputPage->output()
#14 /srv/mediawiki/php-master/includes/exception/MWExceptionRenderer.php(77): MWExceptionRenderer::reportHTML(InvalidArgumentException)
#15 /srv/mediawiki/php-master/includes/exception/MWExceptionHandler.php(106): MWExceptionRenderer::output(InvalidArgumentException, integer)
#16 /srv/mediawiki/php-master/includes/exception/MWExceptionHandler.php(185): MWExceptionHandler::report(InvalidArgumentException)
#17 /srv/mediawiki/php-master/includes/MediaWiki.php(578): MWExceptionHandler::handleException(InvalidArgumentException, string)
#18 /srv/mediawiki/php-master/index.php(53): MediaWiki->run()
#19 /srv/mediawiki/php-master/index.php(46): wfIndexMain()
#20 /srv/mediawiki/w/index.php(3): require(string)
#21 {main}

(2) http://es.wikipedia.beta.wmflabs.org/ is listed in interwiki map:

{
    "prefix": "es",
    "local": "",
    "language": "espa\u00f1ol",
    "url": "https://es.wikipedia.beta.wmflabs.org/wiki/$1"
},

(3) The status response is 500 (internal server error) .

What should have happened instead?:

Either
(A) show the Main page of the site
or if the wiki is removed (see rOMWC46fa67f)
(B) remove that site from interwiki map or mark it as obsolete somehow and give another status response other than 500