MediaWiki API 結果

這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。 指定<var>format</var>參數以變更輸出格式。要查看JSON格式的非HTML實現,設定[https://nedftp.com/wiki/api.php?action=parse&text=%7B%7BPAGENAME%7D%7D&format=json <kbd>format=json</kbd>]。 參見[[mw:API|完整文件]],或[[Special:ApiHelp/main|API說明]]以取得更多資訊。

{
    "error": {
        "code": "internal_api_error_LogicException",
        "info": "[a6b16bddd45656beb7c79e90] Exception caught: Process cache for 'en' 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(LanguageEn, string, boolean, array)\n#3 /var/www/html/wiki/includes/cache/MessageCache.php(956): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)\n#4 /var/www/html/wiki/includes/language/Message.php(1395): MessageCache->get(string, boolean, LanguageEn)\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/language/Language.php(3365): Message->text()\n#8 /var/www/html/wiki/includes/parser/CoreParserFunctions.php(393): Language->parseFormattedNumber(string)\n#9 /var/www/html/wiki/includes/parser/Parser.php(3407): CoreParserFunctions::plural(Parser, string, string, string)\n#10 /var/www/html/wiki/includes/parser/Parser.php(3092): Parser->callParserFunction(PPFrame_Hash, string, array)\n#11 /var/www/html/wiki/includes/parser/PPFrame_Hash.php(273): Parser->braceSubstitution(array, PPFrame_Hash)\n#12 /var/www/html/wiki/includes/parser/Parser.php(2930): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)\n#13 /var/www/html/wiki/includes/parser/Parser.php(929): Parser->replaceVariables(string, PPFrame_Hash)\n#14 /var/www/html/wiki/includes/parser/Parser.php(4843): Parser->preprocess(string, Title, ParserOptions)\n#15 /var/www/html/wiki/includes/cache/MessageCache.php(1260): Parser->transformMsg(string, ParserOptions, Title)\n#16 /var/www/html/wiki/includes/language/Message.php(1378): MessageCache->transform(string, boolean, LanguageEn, NULL)\n#17 /var/www/html/wiki/includes/language/Message.php(951): Message->transformText(string)\n#18 /var/www/html/wiki/includes/language/Message.php(1009): Message->format(string)\n#19 /var/www/html/wiki/includes/parser/Parser.php(784): Message->text()\n#20 /var/www/html/wiki/includes/parser/Parser.php(695): Parser->makeLimitReport()\n#21 /var/www/html/wiki/includes/content/WikitextContent.php(327): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)\n#22 /var/www/html/wiki/includes/content/AbstractContent.php(548): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)\n#23 /var/www/html/wiki/includes/api/ApiParse.php(133): AbstractContent->getParserOutput(Title, NULL, ParserOptions)\n#24 /var/www/html/wiki/includes/poolcounter/PoolCounterWorkViaCallback.php(74): ApiParse::{closure}()\n#25 /var/www/html/wiki/includes/poolcounter/PoolCounterWork.php(162): PoolCounterWorkViaCallback->doWork()\n#26 /var/www/html/wiki/includes/api/ApiParse.php(140): PoolCounterWork->execute()\n#27 /var/www/html/wiki/includes/api/ApiParse.php(397): ApiParse->getContentParserOutput(WikitextContent, Title, NULL, ParserOptions)\n#28 /var/www/html/wiki/includes/api/ApiMain.php(1874): ApiParse->execute()\n#29 /var/www/html/wiki/includes/api/ApiMain.php(853): ApiMain->executeAction()\n#30 /var/www/html/wiki/includes/api/ApiMain.php(824): ApiMain->executeActionWithErrorHandling()\n#31 /var/www/html/wiki/api.php(90): ApiMain->execute()\n#32 /var/www/html/wiki/api.php(45): wfApiMain()\n#33 {main}"
    }
}
取自「$'"1」