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(

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

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

The error I’m getting :

Algolia\AlgoliaSearch\Exceptions\RetriableException: Retriable failure on Unreachable Host

I’ve tried all of the API keys I have

Thank you !


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!