I am intermittently getting the error while searching the index:
Exception in thread “main” com.algolia.search.exceptions.AlgoliaRetryException: All hosts are unreachable
SearchResult<?> result = index.search(query);
After sometime it works fine without any code change. Can anyone please let me know what could be the issue?
The same credentials work most of the times, but there are periods when it does not. The same program runs fine most of the time, however sometimes it just fails as mentioned in the ticket.
The issue is intermittent, but when it does it leads to bad customer experience.
The error message you mentioned, “Exception in thread ‘main’ com.algolia.search.exceptions.AlgoliaRetryException: All hosts are unreachable,” indicates that the Algolia search library is unable to establish a connection to the Algolia search servers. This can happen due to various reasons, such as network issues, server downtime, or problems with your internet connection. Visit it