error when client connect
Les mainteneurs répondent en général sous 1 jour
@dudanogueira y travaille déjà.
Depuis le 22/10/2026.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 45/100
Piste de recherche
Start by reading the connection path in /app/clientmanager/weaviate.py at line 98 and its caller in /app/api/routes.py at line 154, then check how the Weaviate client selects its HTTP transport and timeout type. Reproduce with the reported Weaviate, LangChain, and OpenAI setup; done when client.connect() succeeds without the Timeout type error.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Traceback (most recent call last):
File "/app/api/routes.py", line 154, in generate_response
await client.connect()
File "/app/clientmanager/weaviate.py", line 98, in connect
await self.client.connect()
File "/usr/local/lib/python3.11/site-packages/weaviate/connect/executor.py", line 92, in _execute
return cast(T, exception_callback(e))
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weaviate/connect/executor.py", line 38, in raise_exception
raise e
File "/usr/local/lib/python3.11/site-packages/weaviate/connect/executor.py", line 86, in _execute
res = await call
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weaviate/connect/v4.py", line 1112, in connect
meta = await self.get_meta(False)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weaviate/connect/executor.py", line 92, in _execute
return cast(T, exception_callback(e))
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weaviate/connect/executor.py", line 38, in raise_exception
raise e
File "/usr/local/lib/python3.11/site-packages/weaviate/connect/executor.py", line 86, in _execute
res = await call
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weaviate/connect/executor.py", line 92, in _execute
return cast(T, exception_callback(e))
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weaviate/connect/v4.py", line 701, in exc
self.__handle_exceptions(e, error_msg)
File "/usr/local/lib/python3.11/site-packages/weaviate/connect/v4.py", line 657, in __handle_exceptions
raise e
File "/usr/local/lib/python3.11/site-packages/weaviate/connect/executor.py", line 86, in _execute
res = await call
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx2/_client.py", line 1818, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx2/_client.py", line 1846, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx2/_client.py", line 1881, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx2/_client.py", line 1915, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx2/_transports/default.py", line 388, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpcore2/_async/connection_pool.py", line 242, in handle_async_request
raise exc from None
File "/usr/local/lib/python3.11/site-packages/httpcore2/_async/connection_pool.py", line 224, in handle_async_request
response = await connection.handle_async_request(pool_request.request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpcore2/_async/connection.py", line 94, in handle_async_request
raise exc
File "/usr/local/lib/python3.11/site-packages/httpcore2/_async/connection.py", line 74, in handle_async_request
stream = await self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpcore2/_async/connection.py", line 117, in _connect
stream = await self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpcore2/_backends/auto.py", line 31, in connect_tcp
return await self._backend.connect_tcp(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpcore2/_backends/anyio.py", line 117, in connect_tcp
with anyio.fail_after(timeout):
File "/usr/local/lib/python3.11/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/_core/_tasks.py", line 177, in fail_after
deadline = (current_time() + delay) if delay is not None else math.inf
~~~~~~~~~~~~~~~^~~~~~~
TypeError: unsupported operand type(s) for +: 'float' and 'Timeout'
I have both weaviate client 4.24.0 in my app as well as langchain with openai
it seems like weaviate client uses httpx while langchain and openai have httpx2 and somehow the weaviate client is attempting to make requests with httpx2 which doesn't like the Timeout object
I can't seem to find a workaround and i know that the weaviate client libraray doesn't import httpx2
- Langage dominant
- Python
- Étoiles
- 229
- Forks
- 167
- Merge moyen
- 3 j 1 h
- PR mergées (30 j)
- 19
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de weaviate/weaviate-python-client
-
Batch: re-added rate-limited objects stay in results.objs.all_responses as errorsPeut-être pris @inchang-ing l’a pris il y a 30 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
weaviate/weaviate-python-client#2179 ·
Les mainteneurs répondent en général sous 1 jour
-
grpcio<1.80.0 cap conflicts with Google Cloud libraries requiring grpcio>=1.83.0 (April 2027)Peut-être pris @ColtonRobak l’a pris il y a 4 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
weaviate/weaviate-python-client#2226 ·
Les mainteneurs répondent en général sous 1 jour
-
Running backups and exports report completed_at as year 1 instead of NonePeut-être pris @RaphaelFakhri l’a pris il y a 11 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 30/100
weaviate/weaviate-python-client#2216 ·
Les mainteneurs répondent en général sous 1 jour
-
Client-side batching: wholesale chunk failures are reported under chunk-local indices, so errors collide and describe the wrong objectsPeut-être pris @feiiiiii5 l’a pris il y a 44 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 15/100
weaviate/weaviate-python-client#2165 ·
Les mainteneurs répondent en général sous 1 jour
-
[HTTPXodus] Consider migrating from httpx to httpx2 (the actively maintained fork)Peut-être pris @SiAgentBuild l’a pris il y a 58 jours. Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
weaviate/weaviate-python-client#2154 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de weaviate/weaviate-python-client
Issues similaires
-
Suggestion: Add requirements.txtOuverte
Difficulté 1/5 1-3 heures Accessibilité débutants 68/100
MangasMango/bound-to-rot#41 · 1 commentaire ·
-
breaking change
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
-
check-skill-pages: show fixture build errors when a build failsPeut-être pris @ShahadatTest l’a pris aujourd’hui. Ouvertegood first issue P2
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
coco-research/coco#439 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
IgniteRobotics/flashpoint#45 ·
Les mainteneurs répondent en général sous 1 jour