MediaWiki API 結果
這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。
指定format參數以變更輸出格式。要查看JSON格式的非HTML實現,設定format=json。
{ "error": { "code": "internal_api_error_DBQueryTimeoutError", "info": "[46aa01ad95383979d6485ac7] 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/querybuilder/SelectQueryBuilder.php(641): Wikimedia\\Rdbms\\Database->select(array, array, array, string, array, array)\n#5 /var/www/html/wiki/includes/api/ApiQueryBase.php(427): Wikimedia\\Rdbms\\SelectQueryBuilder->fetchResultSet()\n#6 /var/www/html/wiki/includes/api/ApiQueryBlocks.php(219): ApiQueryBase->select(string)\n#7 /var/www/html/wiki/includes/api/ApiQuery.php(600): ApiQueryBlocks->execute()\n#8 /var/www/html/wiki/includes/api/ApiMain.php(1874): ApiQuery->execute()\n#9 /var/www/html/wiki/includes/api/ApiMain.php(853): ApiMain->executeAction()\n#10 /var/www/html/wiki/includes/api/ApiMain.php(824): ApiMain->executeActionWithErrorHandling()\n#11 /var/www/html/wiki/api.php(90): ApiMain->execute()\n#12 /var/www/html/wiki/api.php(45): wfApiMain()\n#13 {main}" } }