MediaWiki API 結果

这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。

指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json

参见完整文档,或API帮助以获取更多信息。

{
    "error": {
        "code": "internal_api_error_DBConnectionError",
        "info": "[2b19efd46f4d097ee39727b5] Exception caught: A database query error has occurred. This may indicate a bug in the software.",
        "*": "Wikimedia\\Rdbms\\DBConnectionError at /var/www/mediawiki/includes/libs/rdbms/database/Database.php(1004)\n#0 /var/www/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1134): Wikimedia\\Rdbms\\Database->reportConnectionError(string)\n#1 /var/www/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(749): Wikimedia\\Rdbms\\LoadBalancer->reportConnectionError()\n#2 /var/www/mediawiki/includes/GlobalFunctions.php(2801): Wikimedia\\Rdbms\\LoadBalancer->getConnection(integer, array, boolean)\n#3 /var/www/mediawiki/includes/changetags/ChangeTags.php(1328): wfGetDB(integer)\n#4 /var/www/mediawiki/includes/libs/objectcache/WANObjectCache.php(1240): ChangeTags::{closure}(boolean, integer, array, NULL)\n#5 /var/www/mediawiki/includes/libs/objectcache/WANObjectCache.php(1114): WANObjectCache->doGetWithSetCallback(string, integer, Closure, array)\n#6 /var/www/mediawiki/includes/changetags/ChangeTags.php(1339): WANObjectCache->getWithSetCallback(string, integer, Closure, array)\n#7 /var/www/mediawiki/includes/changetags/ChangeTags.php(1305): ChangeTags::listExplicitlyDefinedTags()\n#8 /var/www/mediawiki/includes/api/ApiFeedContributions.php(207): ChangeTags::listDefinedTags()\n#9 /var/www/mediawiki/includes/api/ApiBase.php(2226): ApiFeedContributions->getAllowedParams(integer)\n#10 /var/www/mediawiki/includes/api/ApiBase.php(752): ApiBase->getFinalParams()\n#11 /var/www/mediawiki/includes/api/ApiMain.php(1202): ApiBase->extractRequestParams()\n#12 /var/www/mediawiki/includes/api/ApiMain.php(1555): ApiMain->setupModule()\n#13 /var/www/mediawiki/includes/api/ApiMain.php(535): ApiMain->executeAction()\n#14 /var/www/mediawiki/includes/api/ApiMain.php(506): ApiMain->executeActionWithErrorHandling()\n#15 /var/www/mediawiki/api.php(94): ApiMain->execute()\n#16 {main}"
    }
}