MediaWiki API 結果
這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。
指定format參數以變更輸出格式。要查看JSON格式的非HTML實現,設定format=json。
{
"error": {
"code": "internal_api_error_LogicException",
"info": "[3bf63f668f903add90e4b392] Exception caught: Process cache for 'zh-tw' should be set by now.",
"errorclass": "LogicException",
"*": "LogicException at /var/www/html/wiki/includes/cache/MessageCache.php(413)\nfrom /var/www/html/wiki/includes/cache/MessageCache.php(413)\n#0 /var/www/html/wiki/includes/cache/MessageCache.php(1115): MessageCache->load(string)\n#1 /var/www/html/wiki/includes/cache/MessageCache.php(1043): MessageCache->getMsgFromNamespace(string, string)\n#2 /var/www/html/wiki/includes/cache/MessageCache.php(1014): MessageCache->getMessageForLang(LanguageZh_hans, string, boolean, array)\n#3 /var/www/html/wiki/includes/cache/MessageCache.php(956): MessageCache->getMessageFromFallbackChain(LanguageZh_hans, string, boolean)\n#4 /var/www/html/wiki/includes/language/Message.php(1395): MessageCache->get(string, boolean, LanguageZh_hans)\n#5 /var/www/html/wiki/includes/language/Message.php(919): Message->fetchMessage()\n#6 /var/www/html/wiki/includes/language/Message.php(1009): Message->format(string)\n#7 /var/www/html/wiki/includes/linker/LinkRenderer.php(295): Message->text()\n#8 /var/www/html/wiki/includes/parser/LinkHolderArray.php(289): MediaWiki\\Linker\\LinkRenderer->makeBrokenLink(Title, HtmlArmor, array, array)\n#9 /var/www/html/wiki/includes/parser/LinkHolderArray.php(167): LinkHolderArray->replaceInternal(string)\n#10 /var/www/html/wiki/includes/parser/Parser.php(5002): LinkHolderArray->replace(string)\n#11 /var/www/html/wiki/includes/parser/Parser.php(1700): Parser->replaceLinkHoldersPrivate(string)\n#12 /var/www/html/wiki/includes/parser/Parser.php(659): Parser->internalParseHalfParsed(string, boolean, boolean)\n#13 /var/www/html/wiki/includes/content/WikitextContent.php(327): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)\n#14 /var/www/html/wiki/includes/content/AbstractContent.php(548): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)\n#15 /var/www/html/wiki/includes/api/ApiParse.php(133): AbstractContent->getParserOutput(Title, NULL, ParserOptions)\n#16 /var/www/html/wiki/includes/poolcounter/PoolCounterWorkViaCallback.php(74): ApiParse::{closure}()\n#17 /var/www/html/wiki/includes/poolcounter/PoolCounterWork.php(162): PoolCounterWorkViaCallback->doWork()\n#18 /var/www/html/wiki/includes/api/ApiParse.php(140): PoolCounterWork->execute()\n#19 /var/www/html/wiki/includes/api/ApiParse.php(397): ApiParse->getContentParserOutput(WikitextContent, Title, NULL, ParserOptions)\n#20 /var/www/html/wiki/includes/api/ApiMain.php(1874): ApiParse->execute()\n#21 /var/www/html/wiki/includes/api/ApiMain.php(853): ApiMain->executeAction()\n#22 /var/www/html/wiki/includes/api/ApiMain.php(824): ApiMain->executeActionWithErrorHandling()\n#23 /var/www/html/wiki/api.php(90): ApiMain->execute()\n#24 /var/www/html/wiki/api.php(45): wfApiMain()\n#25 {main}"
}
}