MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{
"error": {
"code": "internal_api_error_MWUnknownContentModelException",
"info": "[a85ddd24eaec29e350a6bbe0] Exception caught: The content model 'wikibase-item' is not registered on this wiki. See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions handle this content model.",
"errorclass": "MWUnknownContentModelException",
"*": "MWUnknownContentModelException at /var/www/html/includes/content/ContentHandlerFactory.php(201)\n#0 /var/www/html/includes/content/ContentHandlerFactory.php(266): MediaWiki\\Content\\ContentHandlerFactory->validateContentHandler(string, NULL)\n#1 /var/www/html/includes/content/ContentHandlerFactory.php(189): MediaWiki\\Content\\ContentHandlerFactory->createContentHandlerFromHook(string)\n#2 /var/www/html/includes/content/ContentHandlerFactory.php(97): MediaWiki\\Content\\ContentHandlerFactory->createForModelID(string)\n#3 /var/www/html/includes/Revision/RevisionStore.php(1043): MediaWiki\\Content\\ContentHandlerFactory->getContentHandler(string)\n#4 /var/www/html/includes/Revision/RevisionStore.php(1283): MediaWiki\\Revision\\RevisionStore->loadSlotContent(MediaWiki\\Revision\\SlotRecord, NULL, NULL, NULL, integer)\n#5 [internal function]: MediaWiki\\Revision\\RevisionStore->MediaWiki\\Revision\\{closure}(MediaWiki\\Revision\\SlotRecord)\n#6 /var/www/html/includes/Revision/SlotRecord.php(307): call_user_func(Closure, MediaWiki\\Revision\\SlotRecord)\n#7 /var/www/html/includes/Revision/RevisionRecord.php(175): MediaWiki\\Revision\\SlotRecord->getContent()\n#8 /var/www/html/includes/api/ApiFeedContributions.php(185): MediaWiki\\Revision\\RevisionRecord->getContent(string)\n#9 /var/www/html/includes/api/ApiFeedContributions.php(156): ApiFeedContributions->feedItemDesc(MediaWiki\\Revision\\RevisionStoreRecord)\n#10 /var/www/html/includes/api/ApiFeedContributions.php(120): ApiFeedContributions->feedItem(stdClass)\n#11 /var/www/html/includes/api/ApiMain.php(1593): ApiFeedContributions->execute()\n#12 /var/www/html/includes/api/ApiMain.php(529): ApiMain->executeAction()\n#13 /var/www/html/includes/api/ApiMain.php(500): ApiMain->executeActionWithErrorHandling()\n#14 /var/www/html/api.php(90): ApiMain->execute()\n#15 /var/www/html/api.php(45): wfApiMain()\n#16 {main}"
}
}