When I enter my username and password into the client, as mentionned into the "Get started" section of the documentation, I get a 500 internal error and nothing shows up on my screen when my code is executed.
use Elastic\EnterpriseSearch\Client;
use Elastic\EnterpriseSearch\EnterpriseSearch\Request;
$client = new Client([
'host' => 'http://localhost:3002',
'enterprise-search' => [
'username' => '<username>',
'password' => '<password>'
]
]);
$es = $client->enterpriseSearch();
$result = $es->getVersion(new Request\GetVersion);
echo $result->number;
I should get my elasticsearch version but all I have is an internal server error.
Does this issue is related to the fact that I run app-search v7.13.2 and the php client is v7.13.0 ? If yes, do I need to downgrade my elasticsearch and app-search to 7.13.0 too ?
Thank you