MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{
"error": {
"code": "internal_api_error_DBQueryError",
"info": "[c4b66d1e1da14213d0e69b95] Exception caught: A database query error has occurred. This may indicate a bug in the software.",
"errorclass": "Wikimedia\\Rdbms\\DBQueryError",
"*": "Wikimedia\\Rdbms\\DBQueryError at /www/wwwroot/ksepeses/includes/libs/rdbms/database/Database.php(1699)\n#0 /www/wwwroot/ksepeses/includes/libs/rdbms/database/Database.php(1683): Wikimedia\\Rdbms\\Database->getQueryException()\n#1 /www/wwwroot/ksepeses/includes/libs/rdbms/database/Database.php(1658): Wikimedia\\Rdbms\\Database->getQueryExceptionAndLog()\n#2 /www/wwwroot/ksepeses/includes/libs/rdbms/database/Database.php(1227): Wikimedia\\Rdbms\\Database->reportQueryError()\n#3 /www/wwwroot/ksepeses/includes/libs/rdbms/database/Database.php(3451): Wikimedia\\Rdbms\\Database->query()\n#4 /www/wwwroot/ksepeses/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\\Rdbms\\Database->delete()\n#5 /www/wwwroot/ksepeses/includes/libs/rdbms/database/DBConnRef.php(518): Wikimedia\\Rdbms\\DBConnRef->__call()\n#6 /www/wwwroot/ksepeses/includes/cache/localisation/LCStoreDB.php(96): Wikimedia\\Rdbms\\DBConnRef->delete()\n#7 /www/wwwroot/ksepeses/includes/cache/localisation/LocalisationCache.php(1054): LCStoreDB->finishWrite()\n#8 /www/wwwroot/ksepeses/includes/cache/localisation/LocalisationCache.php(497): LocalisationCache->recache()\n#9 /www/wwwroot/ksepeses/includes/cache/localisation/LocalisationCache.php(371): LocalisationCache->initLanguage()\n#10 /www/wwwroot/ksepeses/includes/cache/localisation/LocalisationCache.php(408): LocalisationCache->loadItem()\n#11 /www/wwwroot/ksepeses/includes/cache/localisation/LocalisationCache.php(333): LocalisationCache->loadSubitem()\n#12 /www/wwwroot/ksepeses/languages/Language.php(3203): LocalisationCache->getSubitem()\n#13 /www/wwwroot/ksepeses/includes/MagicWord.php(126): Language->getMagic()\n#14 /www/wwwroot/ksepeses/includes/MagicWordFactory.php(230): MagicWord->load()\n#15 /www/wwwroot/ksepeses/includes/parser/Parser.php(4869): MagicWordFactory->get()\n#16 /www/wwwroot/ksepeses/includes/parser/CoreParserFunctions.php(64): Parser->setFunctionHook()\n#17 /www/wwwroot/ksepeses/includes/parser/Parser.php(528): CoreParserFunctions::register()\n#18 /www/wwwroot/ksepeses/includes/parser/Parser.php(477): Parser->firstCallInit()\n#19 /www/wwwroot/ksepeses/includes/parser/ParserFactory.php(142): Parser->__construct()\n#20 /www/wwwroot/ksepeses/includes/ServiceWiring.php(817): ParserFactory->create()\n#21 /www/wwwroot/ksepeses/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\\Services\\ServiceContainer->{closure}()\n#22 /www/wwwroot/ksepeses/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\\Services\\ServiceContainer->createService()\n#23 /www/wwwroot/ksepeses/includes/MediaWikiServices.php(1000): Wikimedia\\Services\\ServiceContainer->getService()\n#24 /www/wwwroot/ksepeses/includes/cache/MessageCache.php(1249): MediaWiki\\MediaWikiServices->getParser()\n#25 /www/wwwroot/ksepeses/includes/cache/MessageCache.php(1228): MessageCache->getParser()\n#26 /www/wwwroot/ksepeses/includes/language/Message.php(1287): MessageCache->transform()\n#27 /www/wwwroot/ksepeses/includes/language/Message.php(894): Message->transformText()\n#28 /www/wwwroot/ksepeses/includes/language/Message.php(954): Message->toString()\n#29 /www/wwwroot/ksepeses/includes/api/ApiUsageException.php(56): Message->text()\n#30 /www/wwwroot/ksepeses/includes/api/ApiUsageException.php(72): ApiUsageException->__construct()\n#31 /www/wwwroot/ksepeses/includes/api/ApiBase.php(1382): ApiUsageException::newWithMessage()\n#32 /www/wwwroot/ksepeses/includes/api/ApiBase.php(878): ApiBase->dieWithError()\n#33 /www/wwwroot/ksepeses/extensions/UploadWizard/includes/ApiFlickrBlacklist.php(18): ApiBase->requireOnlyOneParameter()\n#34 /www/wwwroot/ksepeses/includes/api/ApiMain.php(1593): ApiFlickrBlacklist->execute()\n#35 /www/wwwroot/ksepeses/includes/api/ApiMain.php(529): ApiMain->executeAction()\n#36 /www/wwwroot/ksepeses/includes/api/ApiMain.php(500): ApiMain->executeActionWithErrorHandling()\n#37 /www/wwwroot/ksepeses/api.php(90): ApiMain->execute()\n#38 /www/wwwroot/ksepeses/api.php(45): wfApiMain()\n#39 {main}"
}
}