Uncaught exception Client error response [status code] 400

my version is elasticsearch-6.1.3 . It is working for me for development server,
but when I deploy to my customer. the elastic index is ok, and load drugs,
http://localhost:9200/drugs/_search
but the php script fails to access, your help will be appreciated,
thanks, error is below

Fatal error : Uncaught exception 'Guzzle\Http\Exception\ClientErrorResponseException' with message 'Client error response [status code] 400 [reason phrase] Bad Request [url] http://localhost:9200/drugs/medicine/_search' in D:\bmw\btdata\elast_search\php\vendor\guzzle\guzzle\src\Guzzle\Http\Exception\BadResponseException.php:43 Stack trace: #0 D:\bmw\btdata\elast_search\php\vendor\guzzle\guzzle\src\Guzzle\Http\Message\Request.php(145): Guzzle\Http\Exception\BadResponseException::factory(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Message\Response)) #1 [internal function]: Guzzle\Http\Message\Request::onRequestError(Object(Guzzle\Common\Event), 'request.error', Object(Symfony\Component\EventDispatcher\EventDispatcher)) #2 D:\bmw\btdata\elast_search\php\vendor\symfony\event-dispatcher\EventDispatcher.php(184): call_user_func(Array, Object(Guzzle\Common\Event), 'request.error', Object(Symfony\Component\EventDispatcher\EventDispatcher)) #3 D:\bmw\btdata\elast_search\php\vendor\symfony\event-dispatc in D:\bmw\btdata\elast_search\php\vendor\elasticsearch\elasticsearch\src\Elasticsearch\Connections\GuzzleConnection.php on line 277

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