MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{ "error": { "code": "internal_api_error_MWException", "info": "[588c1812bf25105ea6157165] Exception caught: LocalisationCache::readJSONFile: Invalid JSON file: /www/wwwroot/wiki.whiteverse.com/extensions/PdfHandler/i18n/fr.json", "errorclass": "MWException", "*": "MWException at /www/wwwroot/wiki.whiteverse.com/includes/cache/localisation/LocalisationCache.php(596)\nfrom /www/wwwroot/wiki.whiteverse.com/includes/cache/localisation/LocalisationCache.php(596)\n#0 /www/wwwroot/wiki.whiteverse.com/includes/cache/localisation/LocalisationCache.php(926): LocalisationCache->readJSONFile()\n#1 /www/wwwroot/wiki.whiteverse.com/includes/cache/localisation/LocalisationCache.php(496): LocalisationCache->recache()\n#2 /www/wwwroot/wiki.whiteverse.com/includes/cache/localisation/LocalisationCache.php(370): LocalisationCache->initLanguage()\n#3 /www/wwwroot/wiki.whiteverse.com/includes/cache/localisation/LocalisationCache.php(311): LocalisationCache->loadItem()\n#4 /www/wwwroot/wiki.whiteverse.com/includes/language/LanguageFallback.php(106): LocalisationCache->getItem()\n#5 /www/wwwroot/wiki.whiteverse.com/includes/language/LanguageFactory.php(175): MediaWiki\\Languages\\LanguageFallback->getAll()\n#6 /www/wwwroot/wiki.whiteverse.com/includes/language/LanguageFactory.php(121): MediaWiki\\Languages\\LanguageFactory->newFromCode()\n#7 /www/wwwroot/wiki.whiteverse.com/includes/api/ApiQueryLanguageinfo.php(180): MediaWiki\\Languages\\LanguageFactory->getLanguage()\n#8 /www/wwwroot/wiki.whiteverse.com/includes/api/ApiQuery.php(286): ApiQueryLanguageinfo->execute()\n#9 /www/wwwroot/wiki.whiteverse.com/includes/api/ApiMain.php(1647): ApiQuery->execute()\n#10 /www/wwwroot/wiki.whiteverse.com/includes/api/ApiMain.php(617): ApiMain->executeAction()\n#11 /www/wwwroot/wiki.whiteverse.com/includes/api/ApiMain.php(588): ApiMain->executeActionWithErrorHandling()\n#12 /www/wwwroot/wiki.whiteverse.com/api.php(90): ApiMain->execute()\n#13 /www/wwwroot/wiki.whiteverse.com/api.php(45): wfApiMain()\n#14 {main}" } }