MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{
"error": {
"code": "internal_api_error_Elastica\\Exception\\Connection\\HttpException",
"info": "[01c386db75f5d410dcba27e0] Exception caught: Couldn't resolve host",
"errorclass": "Elastica\\Exception\\Connection\\HttpException",
"*": "Elastica\\Exception\\Connection\\HttpException at /var/www/html/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php(189)\n#0 /var/www/html/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Request.php(193): Elastica\\Transport\\Http->exec(Elastica\\Request, array)\n#1 /var/www/html/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Client.php(688): Elastica\\Request->send()\n#2 /var/www/html/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Index.php(559): Elastica\\Client->request(string, string, array, array)\n#3 /var/www/html/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Index/Settings.php(383): Elastica\\Index->request(string, string, array)\n#4 /var/www/html/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Index/Settings.php(74): Elastica\\Index\\Settings->request()\n#5 /var/www/html/extensions/CirrusSearch/includes/Api/SettingsDump.php(35): Elastica\\Index\\Settings->get()\n#6 /var/www/html/includes/api/ApiMain.php(1593): CirrusSearch\\Api\\SettingsDump->execute()\n#7 /var/www/html/includes/api/ApiMain.php(531): ApiMain->executeAction()\n#8 /var/www/html/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()\n#9 /var/www/html/api.php(87): ApiMain->execute()\n#10 {main}"
}
}