PHP API Client Bug : Unreachable Host

Hello ! I’m using PHP Algolia SearchClient for saving object into index, but I’m getting a Retriable Exception

My code :

$client = Algolia\AlgoliaSearch\SearchClient::create(
    'APP_IDXXXXXXXX',
    'KEYXXXXXXXXXXXX'
);


$index = $client->initIndex('my_index');


$result = $index->saveObject($offre);

The error I’m getting :

Algolia\AlgoliaSearch\Exceptions\RetriableException: Retriable failure on appID.algolia.net: Unreachable Host

I’ve tried all of the API keys I have

Thank you !

Hello!

These issues can be tough to debug via the forum, as it could be a number of things potentially. Are you developing from your local machine or from a remote server? We have some information about debugging this issue here in our documentation which may be of some help. We also have steps for submitting a support ticket on this page to get further help in diagnosing the issue, as our resources are somewhat limited.

Happy to help in any way, let us know! Thanks!