cakephp / elastic-search

Elastic search datasource for CakePHP
Other
88 stars 53 forks source link

Error in response exception #124

Closed jubbs closed 7 years ago

jubbs commented 7 years ago

Found an error in the reponse exception class. Needed to change to the following. Not really sure how to use github so just posting it here

public function __construct(Request $request, Response $response)
{
    $this->_request = $request;
    $this->_response = $response;
$error = $response->getError();
    parent::__construct($error['reason']);
}
markstory commented 7 years ago

Which file is that function supposed to be updated in?

jubbs commented 7 years ago

Apologies.

I was using the wrong version of elastic search (5.3) downgraded to 2.3 and no longer an issue.

Thanks