MediaWiki API 結果

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

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

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

{
    "error": {
        "code": "internal_api_error_LogicException",
        "info": "[a12c54138f6203b192461179] 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(1078): Message->fetchMessage()\n#6 /var/www/html/wiki/extensions/SpamBlacklist/includes/SpamRegexBatch.php(170): Message->isDisabled()\n#7 /var/www/html/wiki/extensions/SpamBlacklist/includes/BaseBlacklist.php(259): SpamRegexBatch::regexesFromMessage(string, SpamBlacklist)\n#8 /var/www/html/wiki/includes/libs/objectcache/wancache/WANObjectCache.php(1700): BaseBlacklist->{closure}(boolean, integer, array, NULL, array)\n#9 /var/www/html/wiki/includes/libs/objectcache/wancache/WANObjectCache.php(1532): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)\n#10 /var/www/html/wiki/extensions/SpamBlacklist/includes/BaseBlacklist.php(260): WANObjectCache->getWithSetCallback(string, integer, Closure)\n#11 /var/www/html/wiki/extensions/SpamBlacklist/includes/BaseBlacklist.php(239): BaseBlacklist->getLocalBlacklists()\n#12 /var/www/html/wiki/extensions/SpamBlacklist/includes/SpamBlacklist.php(85): BaseBlacklist->getBlacklists()\n#13 /var/www/html/wiki/extensions/SpamBlacklist/includes/ApiSpamBlacklist.php(38): SpamBlacklist->filter(array, NULL, User, boolean)\n#14 /var/www/html/wiki/includes/api/ApiMain.php(1874): ApiSpamBlacklist->execute()\n#15 /var/www/html/wiki/includes/api/ApiMain.php(853): ApiMain->executeAction()\n#16 /var/www/html/wiki/includes/api/ApiMain.php(824): ApiMain->executeActionWithErrorHandling()\n#17 /var/www/html/wiki/api.php(90): ApiMain->execute()\n#18 /var/www/html/wiki/api.php(45): wfApiMain()\n#19 {main}"
    }
}