MediaWiki API 结果

这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。

指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json

参见完整文档,或API帮助以获取更多信息。

{
    "error": {
        "code": "internal_api_error_Elastica\\Exception\\Connection\\HttpException",
        "info": "[000e46344eba2d34136386f5] 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/Client.php(720): Elastica\\Client->request(string, string, array, array)\n#3 /var/www/html/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Index.php(574): Elastica\\Client->requestEndpoint(Elasticsearch\\Endpoints\\Indices\\Mapping\\Get)\n#4 /var/www/html/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Index.php(97): Elastica\\Index->requestEndpoint(Elasticsearch\\Endpoints\\Indices\\Mapping\\Get)\n#5 /var/www/html/extensions/CirrusSearch/includes/Api/MappingDump.php(32): Elastica\\Index->getMapping()\n#6 /var/www/html/includes/api/ApiMain.php(1593): CirrusSearch\\Api\\MappingDump->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}"
    }
}