Error
- service.version: 1.41.0-wmf.16
- trace.id: 3020c9de-d446-41ff-bc6c-1217dcf57fe0
- Find trace.id in Logstash
[{reqId}] {exception_url} Wikimedia\Assert\ParameterTypeException: Bad value for parameter $taskType: must be a GrowthExperiments\NewcomerTasks\TaskType\ImageRecommendationBaseTaskTypefrom /srv/mediawiki/php-1.41.0-wmf.16/vendor/wikimedia/assert/src/Assert.php(105)
#0 /srv/mediawiki/php-1.41.0-wmf.16/extensions/GrowthExperiments/includes/Api/ApiInvalidateImageRecommendation.php(69): Wikimedia\Assert\Assert::parameterType(array, NULL, string)
#1 /srv/mediawiki/php-1.41.0-wmf.16/includes/api/ApiMain.php(1915): GrowthExperiments\Api\ApiInvalidateImageRecommendation->execute()
#2 /srv/mediawiki/php-1.41.0-wmf.16/includes/api/ApiMain.php(892): ApiMain->executeAction()
#3 /srv/mediawiki/php-1.41.0-wmf.16/includes/api/ApiMain.php(863): ApiMain->executeActionWithErrorHandling()
#4 /srv/mediawiki/php-1.41.0-wmf.16/api.php(95): ApiMain->execute()
#5 /srv/mediawiki/php-1.41.0-wmf.16/api.php(48): wfApiMain()
#6 /srv/mediawiki/w/api.php(3): require(string)
#7 {main}Impact
Notes
Looks like getTaskTypes() can return empty array, as acknowledged by getTaskTypes()[…] ?? null in the code, but that means the fatal error is "expected" which needs to be addressed somehow.