MediaWiki API 結果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{
"error": {
"code": "internal_api_error_CirrusSearch\\Profile\\SearchProfileException",
"info": "[b71e9a767f20d728f909c511] Exception caught: Config entry CirrusSearchPhraseSuggestProfiles must be an array or unset",
"*": "CirrusSearch\\Profile\\SearchProfileException at /var/www/mediawiki/extensions/CirrusSearch/includes/Profile/ConfigProfileRepository.php(100)\n#0 /var/www/mediawiki/extensions/CirrusSearch/includes/Profile/ConfigProfileRepository.php(91): CirrusSearch\\Profile\\ConfigProfileRepository->extractProfiles()\n#1 /var/www/mediawiki/extensions/CirrusSearch/includes/Profile/PhraseSuggesterProfileRepoWrapper.php(205): CirrusSearch\\Profile\\ConfigProfileRepository->listExposedProfiles()\n#2 /var/www/mediawiki/extensions/CirrusSearch/includes/Profile/SearchProfileService.php(293): CirrusSearch\\Profile\\PhraseSuggesterProfileRepoWrapper->listExposedProfiles()\n#3 /var/www/mediawiki/extensions/CirrusSearch/includes/Api/ConfigDump.php(175): CirrusSearch\\Profile\\SearchProfileService->listExposedProfiles(string)\n#4 /var/www/mediawiki/extensions/CirrusSearch/includes/Api/ConfigDump.php(150): CirrusSearch\\Api\\ConfigDump->addProfiles(ApiResult)\n#5 /var/www/mediawiki/includes/api/ApiMain.php(1579): CirrusSearch\\Api\\ConfigDump->execute()\n#6 /var/www/mediawiki/includes/api/ApiMain.php(535): ApiMain->executeAction()\n#7 /var/www/mediawiki/includes/api/ApiMain.php(506): ApiMain->executeActionWithErrorHandling()\n#8 /var/www/mediawiki/api.php(94): ApiMain->execute()\n#9 {main}"
}
}