MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{
"error": {
"code": "internal_api_error_MWException",
"info": "[ame05tw-3iqp2naxklxNwAAAAFI] Exception caught: Internal error in ApiQueryQueryPage::getSpecialPage: SpecialPageFactory failed to create special page Ancientpages",
"errorclass": "MWException",
"*": "MWException at /var/www/html/includes/api/ApiBase.php(1760)\nfrom /var/www/html/includes/api/ApiBase.php(1760)\n#0 /var/www/html/includes/api/ApiQueryQueryPage.php(79): ApiBase::dieDebug()\n#1 /var/www/html/includes/api/ApiQueryQueryPage.php(173): ApiQueryQueryPage->getSpecialPage()\n#2 /var/www/html/includes/api/ApiQuery.php(692): ApiQueryQueryPage->getCacheMode()\n#3 /var/www/html/includes/api/ApiMain.php(1937): ApiQuery->execute()\n#4 /var/www/html/includes/api/ApiMain.php(912): ApiMain->executeAction()\n#5 /var/www/html/includes/api/ApiMain.php(883): ApiMain->executeActionWithErrorHandling()\n#6 /var/www/html/api.php(95): ApiMain->execute()\n#7 /var/www/html/api.php(48): wfApiMain()\n#8 {main}"
}
}