qdrant-client: Requests Timed out
Hi there, using the client like this
from qdrant_client import QdrantClient
url = "https://<QDRANT_SERVER>"
client = QdrantClient(
url=url,
timeout=10,
)
client.<do_stuff>
results in timeout in every requests, if I use my local one running I don’t have any issue.
If I use curl
I don’t have timeouts, I was wondering if you have any idea why calling the APIs with the sdks doesn’t work but with curl
yes. Maybe some options for https in the client?
Thanks you so much.
I cannot share the server URL because is deployed on Azure in our private network, but it is just qdrant in docker
Checking inside the container, there is not log for the requests, while if I use curl
I can see that it hits the container
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 25 (10 by maintainers)
Fixed nothing.
This is still alive and causing troubles.
Running a collection indexing and saving vectors with llamaindex and getting this stuff. Fix it.
Hi!
I have an additional solution to try. Looking through the SDK code, if you don’t set
port=None
when instantiating aQdrantClient
object, the string:6333
gets added onto the request URL.This was causing timeout issues for us with our hosted database. So…
https://my-url.com:6333/collections
-> timeout errorhttps://my-url.com/collections
-> Success!Using the test code below allowed me to connect to our hosted database.
Hopefully this helps!
@FrancescoSaverioZuppichini it seems for me that we can proceed like this infinitely, I suggest you to concat me in discord so we could solve the issue in real-time, and then publish a post-mortem here
To find me in discord go to our discord channel and look for
george.panchuk
.hi @FrancescoSaverioZuppichini
sorry for the late response
As I wrote here, I had tried these configurations and they were correct: all of them set
QdrantClient._client._https
flag correctly and constructedQdrantClient._client.rest_uri
.If you can’t share even an obfuscated uri, then it might be helpful if you could check values of the mentioned variables on your own and write the result here
@FrancescoSaverioZuppichini @Thiru-GVT could you please provide qdrant version you are using and qdrant-client version?
Btw, in some setups azure deployment requires setting port as 443 instead of 6333