Page MenuHomePhabricator

MissingTypeException during wbsetclaim (again)
Open, LowPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   Deserializers\Exceptions\MissingTypeException:
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.7/vendor/wikibase/data-model-serialization/src/Deserializers/StatementDeserializer.php(89)
#0 /srv/mediawiki/php-1.37.0-wmf.7/extensions/Wikibase/repo/includes/Api/SetClaim.php(269): Wikibase\DataModel\Deserializers\StatementDeserializer->deserialize(array)
#1 /srv/mediawiki/php-1.37.0-wmf.7/extensions/Wikibase/repo/includes/Api/SetClaim.php(165): Wikibase\Repo\Api\SetClaim->getStatementFromParams(array)
#2 /srv/mediawiki/php-1.37.0-wmf.7/extensions/Wikibase/repo/includes/Api/SetClaim.php(154): Wikibase\Repo\Api\SetClaim->executeInternal()
#3 /srv/mediawiki/php-1.37.0-wmf.7/includes/api/ApiMain.php(1669): Wikibase\Repo\Api\SetClaim->execute()
#4 /srv/mediawiki/php-1.37.0-wmf.7/includes/api/ApiMain.php(639): ApiMain->executeAction()
#5 /srv/mediawiki/php-1.37.0-wmf.7/includes/api/ApiMain.php(610): ApiMain->executeActionWithErrorHandling()
#6 /srv/mediawiki/php-1.37.0-wmf.7/api.php(90): ApiMain->execute()
#7 /srv/mediawiki/php-1.37.0-wmf.7/api.php(45): wfApiMain()
#8 /srv/mediawiki/w/api.php(3): require(string)
#9 {main}
Impact
  • seems to be very rare, only two occurences in the last 30 days
Notes

Based on the stacktrace it seems to have originated during a wbsetclaim call. It seems this is a reoccurrence of this strange error: T234829: MissingTypeException when trying to set claim via the API

Details

Request URL
https://www.wikidata.org/w/api.php

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Michael renamed this task from Deserializers\Exceptions\MissingTypeException: to MissingTypeException during wbsetclaim (again).Jun 4 2021, 4:47 PM

The payload:

{"format":"jsonfm","claim":"[\r\n            {\r\n                \"mainsnak\": {\r\n                    \"snaktype\": \"value\",\r\n                    \"property\": \"P54\",\r\n                    \"hash\": \"ef4c4d4e0772c104b97072bd9bae0480dd49bd8b\",\r\n                    \"datavalue\": {\r\n                ","ignoreduplicatemainsnak":"1","wrappedhtml":"1","token":"[redacted]","action":"wbsetclaim","summary":"reordering claims","index":"5"}
{
	"format": "jsonfm",
	"claim": "[\r\n            {\r\n                \"mainsnak\": {\r\n                    \"snaktype\": \"value\",\r\n                    \"property\": \"P54\",\r\n                    \"hash\": \"ef4c4d4e0772c104b97072bd9bae0480dd49bd8b\",\r\n                    \"datavalue\": {\r\n                ",
	"ignoreduplicatemainsnak": "1",
	"wrappedhtml": "1",
	"token": "[redacted]",
	"action": "wbsetclaim",
	"summary": "reordering claims",
	"index": "5"
}