Page MenuHomePhabricator

No formatter defined for value type unknown.
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.36.0-wmf.11

message
No formatter defined for value type unknown.

Impact

27 messages for this type in the past 4 hours for wmf.11

Notes

Details

Request ID
2848385a-84e1-4622-8a5e-1f143273c5c7
Request URL
https://www.wikidata.org/w/api.php?action=wbformatvalue&format=json&datavalue=%7B%22value%22%3A%22%20%5C%5Cmathsf%20I%20%22%2C%22type%22%3A%22unknown%22%7D&generate=text%2Fhtml%3B%20disposition%3Dverbose-preview&property=P4020&errorformat=plaintext&uselang=en&options=%7B%22lang%22%3A%22en%22%7D
Stack Trace
exception.trace
#0 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Wikibase/lib/includes/Formatters/DispatchingValueFormatter.php(73): Wikibase\Lib\Formatters\DispatchingValueFormatter->getFormatter(string, NULL)
#1 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Wikibase/lib/includes/Formatters/DispatchingValueFormatter.php(94): Wikibase\Lib\Formatters\DispatchingValueFormatter->formatValue(DataValues\UnknownValue)
#2 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Wikibase/lib/includes/Formatters/ErrorHandlingSnakFormatter.php(92): Wikibase\Lib\Formatters\DispatchingValueFormatter->format(DataValues\UnknownValue)
#3 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Wikibase/repo/includes/Api/FormatSnakValue.php(139): Wikibase\Lib\Formatters\ErrorHandlingSnakFormatter->formatSnak(Wikibase\DataModel\Snak\PropertyValueSnak)
#4 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Wikibase/repo/includes/Api/FormatSnakValue.php(109): Wikibase\Repo\Api\FormatSnakValue->formatValue(array, DataValues\UnknownValue, NULL)
#5 /srv/mediawiki/php-1.36.0-wmf.11/includes/api/ApiMain.php(1565): Wikibase\Repo\Api\FormatSnakValue->execute()
#6 /srv/mediawiki/php-1.36.0-wmf.11/includes/api/ApiMain.php(545): ApiMain->executeAction()
#7 /srv/mediawiki/php-1.36.0-wmf.11/includes/api/ApiMain.php(516): ApiMain->executeActionWithErrorHandling()
#8 /srv/mediawiki/php-1.36.0-wmf.11/api.php(90): ApiMain->execute()
#9 /srv/mediawiki/php-1.36.0-wmf.11/api.php(45): wfApiMain()
#10 /srv/mediawiki/w/api.php(3): require(string)
#11 {main}

Event Timeline

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

This keeps happening in -wmf.13 and -wmf.14: https://logstash.wikimedia.org/goto/f9866a8f6737cbfd5eb32fef328adfd9

It occurs when trying to add a statement for title in LaTeX.

Adding the Math project as it seems that it is properties its datatype that experiences a performance degradation. The cause is still unclear, might very well be in Wikibase.

The error seems to be in the JS when trying to create a new statement with that property. The setClaim api call already contains "type": "unknown", which is incorrect.

claim	"{\"type\":\"statement\",\"mainsnak\":{\"snaktype\":\"value\",\"property\":\"P6835\",\"datavalue\":{\"type\":\"unknown\",\"value\":\"Codes+over+$$F_{4}+vF_4$$+F+4+++v+F+4+and+some+DNA+applications\"}},\"id\":\"Q4115189$143dd941-4398-8a1c-f4ac-c82ab03adfd9\",\"rank\":\"normal\"}"

That being said, a bad API call should not cause a server error. So we have two problems to fix here.

Ladsgroup subscribed.

All of the subtickets have been resolved, no occurrence of this has been recorded in the past three months, safe to assume it's resolved by the subticket.