Replies: 1 comment 1 reply
-
Hey @kdubba, could you please confirm that the docker container is running and the service is available on http://localhost:6333/dashboard ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am trying to move from Weaviate and thought I will give Qdrant a go. I started the local server using docker. Then created a client in Python and when I try to create a collection, it gives me a timeout error. I can see the collection being created in the localhost web dashboard. The tutorial is here: https://qdrant.tech/documentation/quick-start/
Here is the error. Am I doing anything wrong? I just copy pasted the code the quick start tutorial.
client.create_collection(collection_name="testing_collection", vectors_config=VectorParams(size=100, distance=Distance.COSINE))
Traceback (most recent call last):
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request
resp = self._pool.handle_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request
raise exc from None
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request
response = connection.handle_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 101, in handle_request
return self._connection.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 143, in handle_request
raise exc
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 113, in handle_request
) = self._receive_response_headers(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 186, in _receive_response_headers
event = self._receive_event(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 224, in _receive_event
data = self._network_stream.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 124, in read
with map_exceptions(exc_map):
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/qdrant_client/http/api_client.py", line 103, in send_inner
response = self._client.send(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpx/_client.py", line 914, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request
with map_httpcore_exceptions():
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/qdrant_client/qdrant_client.py", line 1730, in create_collection
return self._client.create_collection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/qdrant_client/qdrant_remote.py", line 2261, in create_collection
result: Optional[bool] = self.http.collections_api.create_collection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/qdrant_client/http/api/collections_api.py", line 1170, in create_collection
return self._build_for_create_collection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/qdrant_client/http/api/collections_api.py", line 116, in build_for_create_collection
return self.api_client.request(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/qdrant_client/http/api_client.py", line 76, in request
return self.send(request, type)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/qdrant_client/http/api_client.py", line 93, in send
response = self.middleware(request, self.send_inner)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/qdrant_client/http/api_client.py", line 202, in call
return call_next(request)
^^^^^^^^^^^^^^^^^^
File "/home/krishna/anaconda3/envs/pytor/lib/python3.11/site-packages/qdrant_client/http/api_client.py", line 105, in send_inner
raise ResponseHandlingException(e)
qdrant_client.http.exceptions.ResponseHandlingException: timed out
Beta Was this translation helpful? Give feedback.
All reactions