Last modified: 2012-11-29 13:13:55 UTC
enwiki:Dice and simplewiki:Dice belong to the same item 96406 If you send a request to wbgetitems requesting both pages at the same time using http://wikidata-test-repo.wikimedia.de/w/api.php?action=wbgetitems&sites=enwiki|simplewiki&titles=Dice&language=en and error is returned: <api> <error code="internal_api_error_MWException" info="Exception Caught: Internal error in ApiResult::setElement: Attempting to add element id=96406, existing value is 96406" xml:space="preserve"> #0 /var/www/wikidata-test-repo.wikimedia.de/w/includes/api/ApiBase.php(1405): wfDebugDieBacktrace('Internal error ...') #1 /var/www/wikidata-test-repo.wikimedia.de/w/includes/api/ApiResult.php(157): ApiBase::dieDebug('ApiResult::setE...', 'Attempting to a...') #2 /var/www/wikidata-test-repo.wikimedia.de/w/includes/api/ApiResult.php(290): ApiResult::setElement(Array, 'id', 96406, false) #3 /var/www/wikidata-test-repo.wikimedia.de/w/extensions/Wikibase/repo/includes/api/ApiGetItems.php(100): ApiResult->addValue(Array, 'id', 96406) #4 /var/www/wikidata-test-repo.wikimedia.de/w/includes/api/ApiMain.php(714): Wikibase\ApiGetItems->execute() #5 /var/www/wikidata-test-repo.wikimedia.de/w/includes/api/ApiMain.php(363): ApiMain->executeAction() #6 /var/www/wikidata-test-repo.wikimedia.de/w/includes/api/ApiMain.php(347): ApiMain->executeActionWithErrorHandling() #7 /var/www/wikidata-test-repo.wikimedia.de/w/api.php(113): ApiMain->execute() #8 {main} </error> </api>
https://gerrit.wikimedia.org/r/15528