Page MenuHomePhabricator

TypeError: Argument 3 passed to GrowthExperiments\Api\ApiSetMenteeStatus::__construct() must be an instance of GrowthExperiments\Mentorship\MentorManager
Closed, ResolvedPublicPRODUCTION ERROR

Description

Link to the logstash errors report. For wmf.8 2,637 errors were recorded - the last timestamp Nov 3, 2022 @ 20:56:11.203

exception.trace
from /srv/mediawiki/php-1.40.0-wmf.8/extensions/GrowthExperiments/includes/Api/ApiSetMenteeStatus.php(26)
#0 /srv/mediawiki/php-1.40.0-wmf.8/vendor/wikimedia/object-factory/src/ObjectFactory.php(247): GrowthExperiments\Api\ApiSetMenteeStatus->__construct(ApiMain, string, GrowthExperiments\Config\GrowthExperimentsMultiConfig, GrowthExperiments\Mentorship\MentorPageMentorManager, GrowthExperiments\Mentorship\Store\DatabaseMentorStore)
#1 /srv/mediawiki/php-1.40.0-wmf.8/vendor/wikimedia/object-factory/src/ObjectFactory.php(152): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec(array, array)
#2 /srv/mediawiki/php-1.40.0-wmf.8/includes/api/ApiModuleManager.php(183): Wikimedia\ObjectFactory\ObjectFactory->createObject(array, array)
#3 /srv/mediawiki/php-1.40.0-wmf.8/includes/api/ApiModuleManager.php(155): ApiModuleManager->instantiateModule(string, array)
#4 /srv/mediawiki/php-1.40.0-wmf.8/includes/api/ApiBase.php(611): ApiModuleManager->getModule(string)
#5 /srv/mediawiki/php-1.40.0-wmf.8/includes/api/ApiBase.php(1888): ApiBase->getModuleFromPath(string)
#6 /srv/mediawiki/php-1.40.0-wmf.8/includes/api/ApiHelp.php(476): ApiBase->getFinalParamDescription()
#7 /srv/mediawiki/php-1.40.0-wmf.8/includes/api/ApiHelp.php(182): ApiHelp::getHelpInternal(DerivativeContext, array, array, array)
#8 /srv/mediawiki/php-1.40.0-wmf.8/includes/api/ApiHelp.php(72): ApiHelp::getHelp(DerivativeContext, array, array)
#9 /srv/mediawiki/php-1.40.0-wmf.8/includes/api/ApiMain.php(1903): ApiHelp->execute()
#10 /srv/mediawiki/php-1.40.0-wmf.8/includes/api/ApiMain.php(878): ApiMain->executeAction()
#11 /srv/mediawiki/php-1.40.0-wmf.8/includes/api/ApiMain.php(849): ApiMain->executeActionWithErrorHandling()
#12 /srv/mediawiki/php-1.40.0-wmf.8/api.php(90): ApiMain->execute()
#13 /srv/mediawiki/php-1.40.0-wmf.8/api.php(45): wfApiMain()
#14 /srv/mediawiki/w/api.php(3): require(string)
#15 {main}

Details

Request URL
https://en.wikipedia.org/w/api.php

Event Timeline

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

Thanks for filling this! This happened due to a deployment that was happening at that time:

20:50	<urbanecm@deploy1002>	urbanecm and urbanecm: Backport for [[gerrit:853026|ApiSetMenteeStatus: Check GEMentorshipEnabled in wiki config (T321805)]], [[gerrit:852172|SpecialManageMentors: Do not include explanatory text on transclusion (T321773)]] synced to the testservers: mwdebug2002.codfw.wmnet, mwdebug1001.eqiad.wmnet, mwdebug2001.codfw.wmnet, mwdebug1002.eqiad.wmnet
20:56	<urbanecm@deploy1002>	Finished scap: Backport for [[gerrit:853026|ApiSetMenteeStatus: Check GEMentorshipEnabled in wiki config (T321805)]], [[gerrit:852172|SpecialManageMentors: Do not include explanatory text on transclusion (T321773)]] (duration: 06m 34s)

Unfortunately, the deployment triggered an exception spike (since recently, this is no longer possible with PHP-only code, but the deployment in question was also touching extension.json), without that being intended. Sorry! :)

TLDR: This was a temporary spike that stopped once the deployment finished.