Page MenuHomePhabricator

[betalabs] Add image - mediawiki Internal error when fetching suggested images
Closed, ResolvedPublic

Description

I encounter three mediawiki internal errors when testing in beta.

Here is a full back trace:

MediaWiki internal error.

Original exception: [YZMETHS5T@3y5Z-Bx2j9mQAAAAM] /w/index.php?title=Athletics_at_the_1988_Summer_Olympics_%E2%80%93_Men%27s_50_kilometres_walk&getasktype=image-recommendation&gesuggestededit=1&veaction=edit&section=all&geclickid=fuqbvo308uogq1tvt4m2tmq6dar2uhpj&genewcomertasktoken=1cda28d43c1a7b2fcad9 Error: Call to a member function getRepoName() on boolean
Backtrace:
from /srv/mediawiki/php-master/extensions/GrowthExperiments/includes/NewcomerTasks/AddImage/ImageRecommendationMetadataService.php(107)
#0 /srv/mediawiki/php-master/extensions/GrowthExperiments/includes/NewcomerTasks/AddImage/ImageRecommendationMetadataProvider.php(291): GrowthExperiments\NewcomerTasks\AddImage\ImageRecommendationMetadataService->getApiMetadata(string)
#1 /srv/mediawiki/php-master/extensions/GrowthExperiments/includes/NewcomerTasks/AddImage/ServiceImageRecommendationProvider.php(237): GrowthExperiments\NewcomerTasks\AddImage\ImageRecommendationMetadataProvider->getMetadata(array)
#2 /srv/mediawiki/php-master/extensions/GrowthExperiments/includes/NewcomerTasks/AddImage/ServiceImageRecommendationProvider.php(165): GrowthExperiments\NewcomerTasks\AddImage\ServiceImageRecommendationProvider::processApiResponseData(Title, string, array, GrowthExperiments\NewcomerTasks\AddImage\ImageRecommendationMetadataProvider)
#3 /srv/mediawiki/php-master/extensions/GrowthExperiments/includes/HomepageHooks.php(362): GrowthExperiments\NewcomerTasks\AddImage\ServiceImageRecommendationProvider->get(Title, GrowthExperiments\NewcomerTasks\TaskType\ImageRecommendationTaskType)
#4 /srv/mediawiki/php-master/includes/HookContainer/HookContainer.php(160): GrowthExperiments\HomepageHooks->onBeforePageDisplay(OutputPage, SkinMinerva)
#5 /srv/mediawiki/php-master/includes/HookContainer/HookRunner.php(935): MediaWiki\HookContainer\HookContainer->run(string, array, array)
#6 /srv/mediawiki/php-master/includes/OutputPage.php(2686): MediaWiki\HookContainer\HookRunner->onBeforePageDisplay(OutputPage, SkinMinerva)
#7 /srv/mediawiki/php-master/includes/MediaWiki.php(939): OutputPage->output(boolean)
#8 /srv/mediawiki/php-master/includes/MediaWiki.php(952): MediaWiki::{closure}()
#9 /srv/mediawiki/php-master/includes/MediaWiki.php(559): MediaWiki->main()
#10 /srv/mediawiki/php-master/index.php(53): MediaWiki->run()
#11 /srv/mediawiki/php-master/index.php(46): wfIndexMain()
#12 /srv/mediawiki/w/index.php(3): require(string)
#13 {main}

Exception caught inside exception handler: [YZMETHS5T@3y5Z-Bx2j9mQAAAAM] /w/index.php?title=Athletics_at_the_1988_Summer_Olympics_%E2%80%93_Men%27s_50_kilometres_walk&getasktype=image-recommendation&gesuggestededit=1&veaction=edit&section=all&geclickid=fuqbvo308uogq1tvt4m2tmq6dar2uhpj&genewcomertasktoken=1cda28d43c1a7b2fcad9 Error: Call to a member function getRepoName() on boolean
Backtrace:
from /srv/mediawiki/php-master/extensions/GrowthExperiments/includes/NewcomerTasks/AddImage/ImageRecommendationMetadataService.php(107)
#0 /srv/mediawiki/php-master/extensions/GrowthExperiments/includes/NewcomerTasks/AddImage/ImageRecommendationMetadataProvider.php(291): GrowthExperiments\NewcomerTasks\AddImage\ImageRecommendationMetadataService->getApiMetadata(string)
#1 /srv/mediawiki/php-master/extensions/GrowthExperiments/includes/NewcomerTasks/AddImage/ServiceImageRecommendationProvider.php(237): GrowthExperiments\NewcomerTasks\AddImage\ImageRecommendationMetadataProvider->getMetadata(array)
#2 /srv/mediawiki/php-master/extensions/GrowthExperiments/includes/NewcomerTasks/AddImage/ServiceImageRecommendationProvider.php(165): GrowthExperiments\NewcomerTasks\AddImage\ServiceImageRecommendationProvider::processApiResponseData(Title, string, array, GrowthExperiments\NewcomerTasks\AddImage\ImageRecommendationMetadataProvider)
#3 /srv/mediawiki/php-master/extensions/GrowthExperiments/includes/HomepageHooks.php(362): GrowthExperiments\NewcomerTasks\AddImage\ServiceImageRecommendationProvider->get(Title, GrowthExperiments\NewcomerTasks\TaskType\ImageRecommendationTaskType)
#4 /srv/mediawiki/php-master/includes/HookContainer/HookContainer.php(160): GrowthExperiments\HomepageHooks->onBeforePageDisplay(OutputPage, SkinMinerva)
#5 /srv/mediawiki/php-master/includes/HookContainer/HookRunner.php(935): MediaWiki\HookContainer\HookContainer->run(string, array, array)
#6 /srv/mediawiki/php-master/includes/OutputPage.php(2686): MediaWiki\HookContainer\HookRunner->onBeforePageDisplay(OutputPage, SkinMinerva)
#7 /srv/mediawiki/php-master/includes/exception/MWExceptionRenderer.php(158): OutputPage->output()
#8 /srv/mediawiki/php-master/includes/exception/MWExceptionRenderer.php(77): MWExceptionRenderer::reportHTML(Error)
#9 /srv/mediawiki/php-master/includes/exception/MWExceptionHandler.php(107): MWExceptionRenderer::output(Error, integer)
#10 /srv/mediawiki/php-master/includes/exception/MWExceptionHandler.php(202): MWExceptionHandler::report(Error)
#11 /srv/mediawiki/php-master/includes/MediaWiki.php(581): MWExceptionHandler::handleException(Error, string)
#12 /srv/mediawiki/php-master/index.php(53): MediaWiki->run()
#13 /srv/mediawiki/php-master/index.php(46): wfIndexMain()
#14 /srv/mediawiki/w/index.php(3): require(string)
#15 {main}

Two others:

Original exception: [YY8OrShpPvLWdnunsy39sQAAAFg] /w/index.php?title=1982_in_aviation&getasktype=image-recommendation&gesuggestededit=1&veaction=edit&section=all&geclickid=f56fc343f62c6e5848df&genewcomertasktoken=c99c25def1a357cf71e9 Error: Call to a member function getRepoName() on boolean
Original exception: [YY8DBsFnBHc9bybZBwsH5gAAAAg] /w/index.php?title=Lilia_Sandulesu&getasktype=image-recommendation&gesuggestededit=1&veaction=edit&section=all&geclickid=496fcefad836d501f9f0&genewcomertasktoken=0d43a1160331ab041942 Error: Call to a member function getRepoName() on boolean

Event Timeline

Restricted Application added subscribers: Masumrezarock100, Aklapper. · View Herald Transcript

Change 739047 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/GrowthExperiments@master] Add Image: Fix handling of non-existent files

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

Caused by the recommended file not existing (API example, file example).

One error on testwiki wmf.9

Error
normalized_message
[{reqId}] {exception_url}   Error: Call to a member function getRepoName() on boolean
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.9/extensions/GrowthExperiments/includes/NewcomerTasks/AddImage/ImageRecommendationMetadataService.php(107)
#0 /srv/mediawiki/php-1.38.0-wmf.9/extensions/GrowthExperiments/includes/NewcomerTasks/AddImage/ImageRecommendationMetadataProvider.php(291): GrowthExperiments\NewcomerTasks\AddImage\ImageRecommendationMetadataService->getApiMetadata(string)
#1 /srv/mediawiki/php-1.38.0-wmf.9/extensions/GrowthExperiments/includes/NewcomerTasks/AddImage/ServiceImageRecommendationProvider.php(237): GrowthExperiments\NewcomerTasks\AddImage\ImageRecommendationMetadataProvider->getMetadata(array)
#2 /srv/mediawiki/php-1.38.0-wmf.9/extensions/GrowthExperiments/includes/NewcomerTasks/AddImage/ServiceImageRecommendationProvider.php(165): GrowthExperiments\NewcomerTasks\AddImage\ServiceImageRecommendationProvider::processApiResponseData(Title, string, array, GrowthExperiments\NewcomerTasks\AddImage\ImageRecommendationMetadataProvider)
#3 /srv/mediawiki/php-1.38.0-wmf.9/extensions/GrowthExperiments/includes/HomepageHooks.php(362): GrowthExperiments\NewcomerTasks\AddImage\ServiceImageRecommendationProvider->get(Title, GrowthExperiments\NewcomerTasks\TaskType\ImageRecommendationTaskType)
#4 /srv/mediawiki/php-1.38.0-wmf.9/includes/HookContainer/HookContainer.php(160): GrowthExperiments\HomepageHooks->onBeforePageDisplay(OutputPage, SkinMinerva)
#5 /srv/mediawiki/php-1.38.0-wmf.9/includes/HookContainer/HookRunner.php(935): MediaWiki\HookContainer\HookContainer->run(string, array, array)
#6 /srv/mediawiki/php-1.38.0-wmf.9/includes/OutputPage.php(2686): MediaWiki\HookContainer\HookRunner->onBeforePageDisplay(OutputPage, SkinMinerva)
#7 /srv/mediawiki/php-1.38.0-wmf.9/includes/MediaWiki.php(939): OutputPage->output(boolean)
#8 /srv/mediawiki/php-1.38.0-wmf.9/includes/MediaWiki.php(952): MediaWiki::{closure}()
#9 /srv/mediawiki/php-1.38.0-wmf.9/includes/MediaWiki.php(559): MediaWiki->main()
#10 /srv/mediawiki/php-1.38.0-wmf.9/index.php(53): MediaWiki->run()
#11 /srv/mediawiki/php-1.38.0-wmf.9/index.php(46): wfIndexMain()
#12 /srv/mediawiki/w/index.php(3): require(string)
#13 {main}

Change 739047 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Add Image: Fix handling of non-existent files

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

The error is not present on wmf.12 - the issue is Resolved.

The last timestamp for the error was on testwiki wmf.9 - Nov 22, 2021 @ 15:31:57.076