qdrant / qdrant/qdrant-client

504 Gateway Time-out error while performing search operation.

Open
#552 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.4k
Forks
301
Avg merge
2d 9h
Merged PRs (30d)
37

Description

I'm using a qdrant cluster with 3 nodes, Replication factor of 3, and 6 Shards. The collection creation and data ingestion part is working properly via my python script but when I query the collection to retrieve similar chunks I'm facing 504 gateway time-out error.

PFB the error logs:

File "/usr/local/lib/python3.11/site-packages/qdrant_client/qdrant_client.py", line 336, in search
return self._client.search(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/qdrant_client/qdrant_remote.py", line 497, in search
search_result = self.http.points_api.search_points(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/qdrant_client/http/api/points_api.py", line 1388, in search_points
return self._build_for_search_points(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/qdrant_client/http/api/points_api.py", line 636, in build_for_search_points
return self.api_client.request(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/qdrant_client/http/api_client.py", line 74, in request
return self.send(request, type
)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/qdrant_client/http/api_client.py", line 97, in send
raise UnexpectedResponse.for_response(response)
qdrant_client.http.exceptions.UnexpectedResponse: Unexpected Response: 504 (Gateway Time-out)
Raw response content:
b'\r\n<title>504 Gateway Time-out</title>\r\n\r\n

504 Gateway Time-out

\r\n\r\n\r\n'

Initially, this was working when I had 57k points in the collection but after the data increased to 75k, and I upgraded to the latest version (v1.8.0) since I'm facing this issue.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the search call in qdrant_client.py and follow the traceback through qdrant_remote.py, points_api.py, and api_client.py. Compare the 57k-point and 75k-point cases around the v1.8.0 upgrade and determine whether the 504 originates in the client request or the three-node cluster. Done means a reproducible cause and an actionable diagnosis or fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.