ElasticSearch-6.2.4 Fatal error


(Vadim Klimenko) #1

Fatal error: Uncaught Elasticsearch\Common\Exceptions\BadRequest400Exception: {"error":"Content-Type header [] is not supported","status":406} in /home/vadim/www/FULL/Search/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php on line 671

require 'vendor/autoload.php';
use Elasticsearch\ClientBuilder;
$hosts = [
'127.0.0.1:9200'
];
$clientBuilder = ClientBuilder::create();
$clientBuilder->setHosts($hosts);
$es = $clientBuilder->build();


(Christian Dahlqvist) #2

Which version of the Elasticsearch client are you using?


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.