algolia / algolia/algoliasearch-client-python

unhelpful `AlgoliaUnreachableHostException` error

オープン
#565 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
207
フォーク
63
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

issue ではソースファイルもテストも指定されていません。まず、提供された821件のレコードの入力で失敗を再現し、AlgoliaUnreachableHostException がどこで発生するかを追跡してください。その経路を、動作する1件のレコードの例と比較します。失敗が到達不能なホストを報告するだけでなく、役立つ実行可能な原因を明らかにすれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。