You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Algolia Client Version: 2.5.0 (I see that 3.0 was released 3 days ago, not sure if that resolves this)
Language Version: Python 3.9.7
Description
Client throws algoliasearch.exceptions.AlgoliaUnreachableHostException: Unreachable hosts during replace_all_objects operation. The issue was not that hosts were unreachable but that the operation was timing out. I fixed the problem by setting readTimeout to 100:
Hey, thanks for the issue! We throw an unreachable host error because after a timeout error, we will try an other host (Algolia's API offers multiple), then if there's no host left we end up in an AlgoliaUnreachableHostException
I can however confirm that it can be misleading when doing large enough operations
Description
Client throws
algoliasearch.exceptions.AlgoliaUnreachableHostException
: Unreachable hosts duringreplace_all_objects
operation. The issue was not that hosts were unreachable but that the operation was timing out. I fixed the problem by settingreadTimeout
to 100:A timeout should produce a timeout error. Unreachable is misleading.
Steps To Reproduce
See description.
Use
replace_all_objects
on a sufficiently big index. Mine was 6393 rows and 10+ columns some with significant text blocks.The text was updated successfully, but these errors were encountered: