Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unhelpful AlgoliaUnreachableHostException error #565

Open
ncclementi opened this issue Feb 21, 2024 · 1 comment
Open

unhelpful AlgoliaUnreachableHostException error #565

ncclementi opened this issue Feb 21, 2024 · 1 comment

Comments

@ncclementi
Copy link

ncclementi commented Feb 21, 2024

I have a dictionary with records that I'm trying to use to generate an index. But when trying to do

request_options = {
    "autoGenerateObjectIDIfNotExist":True,
}

index.replace_all_objects(records, request_options)

I get

    raise AlgoliaUnreachableHostException("Unreachable hosts")
algoliasearch.exceptions.AlgoliaUnreachableHostException: Unreachable hosts

But if I try a dummy example where records is [{"test": "test"}] things work. It is unclear to me what's happening, because the error message is not helpful.

For the record:

  • each record size are <10KB
  • the records list has only 821 objects.

I've tried adding read and write timeouts but it doesn't seem to help.

request_options = {
    "autoGenerateObjectIDIfNotExist":True,
    "readTimeout": 300,
    "writeTimeout": 300,
}

How do I debug the issue?

  • Algolia Client Version:
    algoliasearch 3.0.0 pypi_0 pypi

  • Language Version:
    Python 3.10.13

@kylegibson
Copy link

This is happening to me but with the AccountClient.copy_index method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants