Bug: _check_compatibility ignores verify parameter, causing SSL warnings with custom certificates
Maintainers usually reply within 6 days
@industriverse is already working on this.
Since Nov 21, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
The request is made in qdrant_client/common/version_check.py inside get_server_version, which calls httpx.get without a verify argument. Start there, then trace how _check_compatibility in qdrant_client/qdrant_remote.py gets called from the QdrantClient constructor so the verify value can be passed down. Done when a client built with a custom CA path or verify=False gets the server version without the compatibility warning, and a test covers that path.
Written by the indexing model from the issue text.
Description
Description
When connecting to a Qdrant server secured with a custom/private CA or self-signed TLS certificate, initializing QdrantClient with a custom verify path (or verify=False) works correctly for database operations. However, the internal client-server version compatibility check fails because it does not inherit the verify parameter.
This results in a swallowed httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] and surfaces a misleading UserWarning to the user, even though the database connection itself is perfectly valid.
Steps to Reproduce
- Host a Qdrant instance with TLS enabled using a private CA or self-signed certificate.
- Attempt to connect using the Python client, explicitly providing the
verifyparameter:
from qdrant_client import QdrantClient
client = QdrantClient(
url="https://<your-host>:6333",
api_key=api_key,
verify="/path/to/custom_ca.crt"
)
print(client.get_collections())
- The connection succeeds, but prints the following warning:
UserWarning: Failed to obtain server version. Unable to check client-server compatibility. Set check_compatibility=False to skip version check.
Expected Behavior
The internal HTTP request used to fetch the server version should respect the verify argument (whether it is a boolean or a file path) passed during the instantiation of QdrantClient.
Actual Behavior / Root Cause
The warning is triggered in qdrant_client/qdrant_remote.py inside _check_compatibility because the underlying request throws an SSL exception.
Looking at qdrant_client/common/version_check.py inside get_server_version:
def get_server_version(
rest_uri: str, rest_headers: dict[str, Any], auth_provider: BearerAuth | None, timeout: int
) -> str | None:
response = httpx.get(rest_uri, headers=rest_headers, auth=auth_provider, timeout=timeout)
# ...
The httpx.get call is missing the verify=... parameter. It falls back to HTTPX's default system trust store, fails the SSL handshake, and throws an exception which is then generically caught and masked as a "Failed to obtain server version" warning.
Workarounds
Currently, users must globally override the HTTPX and gRPC trust stores using environment variables before importing the client:
import os
os.environ["SSL_CERT_FILE"] = "/path/to/custom_ca.crt"
os.environ["GRPC_DEFAULT_SSL_ROOTS_FILE_PATH"] = "/path/to/custom_ca.crt"
# or use the path on linux to the ssl folder: "/etc/ssl/certs/ca-certificates.crt"
Alternatively, users have to disable the check entirely via check_compatibility=False.
Proposed Solution
Pass the verify parameter down from the QdrantClient constructor through _check_compatibility to the httpx.get() call inside get_server_version().
- 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
-
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
-
api_key does not replace an api-key header for gRPC requestsPossibly taken @Steve-20-ai claimed this 22 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
qdrant/qdrant-client#1667 ·
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