api_key does not replace an api-key header for gRPC requests
Maintainers usually reply within 6 days
@Steve-20-ai is already working on this.
Since Nov 9, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- api, authentication
Research direction
Start by locating where QdrantClient builds _grpc_headers and where AsyncQdrantClient handles the same setting. Check how existing tests cover api_key and custom headers, then run the relevant gRPC client tests. Done means both sync and async gRPC requests send the api_key value in place of any api-key value supplied in headers.
Written by the indexing model from the issue text.
Description
Current behavior
When you pass both api_key and an api-key entry in headers, the client warns that the header "will be overridden with api_key parameter value". REST requests do send api_key. gRPC requests send both values as api-key metadata, with the header value first:
from qdrant_client import QdrantClient
client = QdrantClient(
host="localhost",
prefer_grpc=True,
https=True,
api_key="from-param",
headers={"api-key": "from-headers"},
check_compatibility=False,
)
print(client._client._grpc_headers)
# [('api-key', 'from-headers'), ('api-key', 'from-param')]
The server reads the first api-key value (HeaderMap::get), so gRPC requests authenticate with the header value, while REST requests from the same client use api_key. With a stale key in headers, REST calls succeed and gRPC calls fail with Unauthenticated. AsyncQdrantClient behaves the same way.
Expected behavior
api_key replaces the api-key header for gRPC too, as the warning says.
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 409
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 11
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from qdrant/qdrant-client
-
Local listing queries silently accept a missing lookup_from collectionPossibly taken @SandeshKumar1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
qdrant/qdrant-client#1729 · 1 comment ·
Maintainers usually reply within 6 days
-
url="qdrant:6333" raises "Unknown scheme: qdrant" when the scheme is left outPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
qdrant/qdrant-client#1712 ·
Maintainers usually reply within 6 days
-
Bug: _check_compatibility ignores verify parameter, causing SSL warnings with custom certificatesPossibly taken @industriverse claimed this 10 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
qdrant/qdrant-client#1693 · 1 comment ·
Maintainers usually reply within 6 days
-
Reciprocal rank fusion overwrites source scores and previous resultsPossibly taken @IlyaKhalafi claimed this 25 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
qdrant/qdrant-client#1680 ·
Maintainers usually reply within 6 days
-
IPv6 literal host: QdrantClient builds invalid REST URL and gRPC targetMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
qdrant/qdrant-client#1678 · 2 comments ·
Maintainers usually reply within 6 days
All issues in qdrant/qdrant-client
Similar issues
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Status: Triage Suggestion
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
collabnix/awesome-mcp-lists#515 ·
Maintainers usually reply within 1 day
-
Look-ahead bias via resample('1min').interpolate(method='time') in CCIStrategy and ReinforcedQuickieOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day