Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

error when client connect

Đang mở
#2,220 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@dudanogueira đang làm issue này rồi.

Từ ngày 22/10/2026.

  • #2222 của @dudanogueira — đang mở
  • #2223 của @dudanogueira — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend, databases

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
228
Fork
167
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
20

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của weaviate/weaviate-python-client

Tất cả issue của weaviate/weaviate-python-client

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.