MediaWiki API 結果

這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。

指定format參數以變更輸出格式。要查看JSON格式的非HTML實現,設定format=json

參見完整文件,或API說明以取得更多資訊。

{
    "error": {
        "code": "internal_api_error_DBQueryTimeoutError",
        "info": "[85f01db64ebed1f14f7cefc5] Exception caught: A database query error has occurred. This may indicate a bug in the software.",
        "errorclass": "Wikimedia\\Rdbms\\DBQueryTimeoutError",
        "*": "Wikimedia\\Rdbms\\DBQueryTimeoutError at /var/www/html/wiki/includes/libs/rdbms/database/Database.php(1805)\nfrom /var/www/html/wiki/includes/libs/rdbms/database/Database.php(1805)\n#0 /var/www/html/wiki/includes/libs/rdbms/database/Database.php(1793): Wikimedia\\Rdbms\\Database->getQueryException(string, integer, string, string)\n#1 /var/www/html/wiki/includes/libs/rdbms/database/Database.php(1768): Wikimedia\\Rdbms\\Database->getQueryExceptionAndLog(string, integer, string, string)\n#2 /var/www/html/wiki/includes/libs/rdbms/database/Database.php(1327): Wikimedia\\Rdbms\\Database->reportQueryError(string, integer, string, string, boolean)\n#3 /var/www/html/wiki/includes/libs/rdbms/database/Database.php(2012): Wikimedia\\Rdbms\\Database->query(string, string, integer)\n#4 /var/www/html/wiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\\Rdbms\\Database->select(array, array, array, string, array, array)\n#5 /var/www/html/wiki/includes/libs/rdbms/database/DBConnRef.php(324): Wikimedia\\Rdbms\\DBConnRef->__call(string, array)\n#6 /var/www/html/wiki/includes/specials/pagers/ContribsPager.php(287): Wikimedia\\Rdbms\\DBConnRef->select(array, array, array, string, array, array)\n#7 /var/www/html/wiki/includes/pager/IndexPager.php(280): ContribsPager->reallyDoQuery(string, integer, boolean)\n#8 /var/www/html/wiki/includes/pager/IndexPager.php(735): IndexPager->doQuery()\n#9 /var/www/html/wiki/includes/api/ApiFeedContributions.php(190): IndexPager->getNumRows()\n#10 /var/www/html/wiki/includes/api/ApiMain.php(1874): ApiFeedContributions->execute()\n#11 /var/www/html/wiki/includes/api/ApiMain.php(853): ApiMain->executeAction()\n#12 /var/www/html/wiki/includes/api/ApiMain.php(824): ApiMain->executeActionWithErrorHandling()\n#13 /var/www/html/wiki/api.php(90): ApiMain->execute()\n#14 /var/www/html/wiki/api.php(45): wfApiMain()\n#15 {main}"
    }
}