MediaWiki API 结果

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

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

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

{
    "error": {
        "code": "internal_api_error_DBQueryError",
        "info": "[ZzY6Rgf-85Rag@avxgn-4QAAAAQ] Exception caught: A database query error has occurred. This may indicate a bug in the software.",
        "errorclass": "Wikimedia\\Rdbms\\DBQueryError",
        "*": "Wikimedia\\Rdbms\\DBQueryError at /home/idempiere/mediawiki-1.35.2/includes/libs/rdbms/database/Database.php(1699)\n#0 /home/idempiere/mediawiki-1.35.2/includes/libs/rdbms/database/Database.php(1683): Wikimedia\\Rdbms\\Database->getQueryException()\n#1 /home/idempiere/mediawiki-1.35.2/includes/libs/rdbms/database/Database.php(1658): Wikimedia\\Rdbms\\Database->getQueryExceptionAndLog()\n#2 /home/idempiere/mediawiki-1.35.2/includes/libs/rdbms/database/Database.php(1227): Wikimedia\\Rdbms\\Database->reportQueryError()\n#3 /home/idempiere/mediawiki-1.35.2/includes/libs/rdbms/database/Database.php(1907): Wikimedia\\Rdbms\\Database->query()\n#4 /home/idempiere/mediawiki-1.35.2/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(601): Wikimedia\\Rdbms\\Database->select()\n#5 /home/idempiere/mediawiki-1.35.2/includes/api/ApiQueryBase.php(430): Wikimedia\\Rdbms\\SelectQueryBuilder->fetchResultSet()\n#6 /home/idempiere/mediawiki-1.35.2/includes/api/ApiQueryExtLinksUsage.php(140): ApiQueryBase->select()\n#7 /home/idempiere/mediawiki-1.35.2/includes/api/ApiQueryExtLinksUsage.php(33): ApiQueryExtLinksUsage->run()\n#8 /home/idempiere/mediawiki-1.35.2/includes/api/ApiQuery.php(263): ApiQueryExtLinksUsage->execute()\n#9 /home/idempiere/mediawiki-1.35.2/includes/api/ApiMain.php(1593): ApiQuery->execute()\n#10 /home/idempiere/mediawiki-1.35.2/includes/api/ApiMain.php(529): ApiMain->executeAction()\n#11 /home/idempiere/mediawiki-1.35.2/includes/api/ApiMain.php(500): ApiMain->executeActionWithErrorHandling()\n#12 /home/idempiere/mediawiki-1.35.2/api.php(90): ApiMain->execute()\n#13 /home/idempiere/mediawiki-1.35.2/api.php(45): wfApiMain()\n#14 {main}"
    }
}