Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added projects: Wikimedia-production-error, Wikidata, 
MediaWiki-extensions-WikibaseRepository, wdwb-tech.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  Someone’s making `wbformatvalue` API requests with a `datavalue` parameter 
that decodes to 
`{"value":{"id":{"isTrusted":true}},"type":"wikibase-entityid"}`; this causes a 
PHP notice here:
  
  name=WikibaseRepo.ServiceWiring.php 'WikibaseRepo.DataValueDeserializer'
    throw new InvalidArgumentException(
        'Can not parse id \'' . $value['id'] . '\' to build EntityIdValue with',
        0,
        $parsingException
    );
  
  
  
  Error
  -----
  
  - mwversion: 1.41.0-wmf.4
  - reqId: 3e1a0eaf-82fd-4a20-a507-6d3d82d47ec7
  - Find reqId in Logstash 
<https://logstash.wikimedia.org/app/dashboards#/view/AXFV7JE83bOlOASGccsT?_g=(time:(from:'2023-04-13T05:53:57.501Z',to:'2023-04-14T10:38:35.392Z'))&_a=(query:(query_string:(query:'reqId:%223e1a0eaf-82fd-4a20-a507-6d3d82d47ec7%22')))>
  
  name=normalized_message
    [{reqId}] {exception_url}   PHP Notice: Array to string conversion
  
  name=exception.trace
    from 
/srv/mediawiki/php-1.41.0-wmf.4/extensions/Wikibase/repo/WikibaseRepo.ServiceWiring.php(507)
    #0 
/srv/mediawiki/php-1.41.0-wmf.4/extensions/Wikibase/repo/WikibaseRepo.ServiceWiring.php(507):
 MWExceptionHandler::handleError(integer, string, string, integer, array)
    #1 
/srv/mediawiki/php-1.41.0-wmf.4/vendor/data-values/serialization/src/Deserializers/DataValueDeserializer.php(122):
 Wikimedia\Services\ServiceContainer::{closure}(array)
    #2 
/srv/mediawiki/php-1.41.0-wmf.4/vendor/data-values/serialization/src/Deserializers/DataValueDeserializer.php(91):
 DataValues\Deserializers\DataValueDeserializer->getDeserialization(array)
    #3 
/srv/mediawiki/php-1.41.0-wmf.4/extensions/Wikibase/lib/includes/DataValueFactory.php(44):
 DataValues\Deserializers\DataValueDeserializer->deserialize(array)
    #4 
/srv/mediawiki/php-1.41.0-wmf.4/extensions/Wikibase/lib/includes/DataValueFactory.php(75):
 Wikibase\Lib\DataValueFactory->newDataValue(string, array)
    #5 
/srv/mediawiki/php-1.41.0-wmf.4/extensions/Wikibase/repo/includes/Api/FormatSnakValue.php(248):
 Wikibase\Lib\DataValueFactory->newFromArray(array)
    #6 
/srv/mediawiki/php-1.41.0-wmf.4/extensions/Wikibase/repo/includes/Api/FormatSnakValue.php(143):
 Wikibase\Repo\Api\FormatSnakValue->decodeDataValue(string)
    #7 /srv/mediawiki/php-1.41.0-wmf.4/includes/api/ApiMain.php(1908): 
Wikibase\Repo\Api\FormatSnakValue->execute()
    #8 /srv/mediawiki/php-1.41.0-wmf.4/includes/api/ApiMain.php(884): 
ApiMain->executeAction()
    #9 /srv/mediawiki/php-1.41.0-wmf.4/includes/api/ApiMain.php(855): 
ApiMain->executeActionWithErrorHandling()
    #10 /srv/mediawiki/php-1.41.0-wmf.4/api.php(91): ApiMain->execute()
    #11 /srv/mediawiki/php-1.41.0-wmf.4/api.php(46): wfApiMain()
    #12 /srv/mediawiki/w/api.php(3): require(string)
    #13 {main}
  
  Impact
  ------
  
  Minor logspam. No user impact.
  
  Notes
  -----

TASK DETAIL
  https://phabricator.wikimedia.org/T334719

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Astuthiodit_1, karapayneWMDE, Invadibot, 
maantietaja, ItamarWMDE, Akuckartz, darthmon_wmde, Rosalie_WMDE, Nandana, 
lucamauri, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Verdy_p, Wikidata-bugs, aude, Jdforrester-WMF, Mbch331, 
Jay8g
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to