Error: 'Hosts unreachable'

algoliasearch
yii2
algoliaconnectionexc

#1

Hi am getting this host’s unreachable exception

'Exception ‘AlgoliaSearch\AlgoliaConnectionException’ with a message ‘Hosts unreachable: Operation timed out after 1000 milliseconds with 0 out of 0 bytes received,Operation timed out after 30000 milliseconds with 0 bytes received,Operation timed out after 40000 milliseconds with 0 bytes received, Operation timed out after 40000 milliseconds with 0 bytes received’

Do you have any idea how to fix this issue ?

Thanks


#2

Hi @flowerlifeco,

If you are having connectivity issues to the Algolia API, it could need some investigation:

  1. Are you aware of when these connectivity issues started?
  2. Has anything changed recently?
  3. Have you attempted to index a large quantity of records?

It appears that your server may not be able to contact the Algolia API. In order to confirm this, please run our diagnostic script command below on your impacted servers. Ensure that you replace “YourAlgoliaApplicationId” with your actual Algolia application id

curl -sL https://algolia.com/downloads/diag.sh > ./diag.sh && sudo ./diag.sh YourAlgoliaApplicationId

Please reply with the link generated by running this command. The output will give us more insight regarding the connection issues.