algolia / algolia/algoliasearch-client-python
unhelpful `AlgoliaUnreachableHostException` error
- Lenguaje dominante
- Python
- Estrellas
- 207
- Forks
- 63
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I have a dictionary with records that I'm trying to use to generate an index. But when trying to do
```python
request_options = {
"autoGenerateObjectIDIfNotExist":True,
}
index.replace_all_objects(records, request_options)
```
I get
```python-traceback
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.
```python
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
Guía de contribución
Línea de trabajo
El issue no nombra ningún archivo fuente ni ninguna prueba. Empieza reproduciendo el fallo con la entrada proporcionada de 821 registros y rastrea dónde se lanza AlgoliaUnreachableHostException; compara esa ruta con el ejemplo funcional de un solo registro. La tarea estará terminada cuando el fallo exponga una causa útil y accionable, en lugar de informar únicamente de hosts inaccesibles.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- api
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100