Bug: _check_compatibility ignores verify parameter, causing SSL warnings with custom certificates

Open Beginner friendly
#1,693 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

@industriverse is already working on this.

Since Nov 21, 2026.

  • #1694 by @inchang-ing — open
  • #1706 by @industriverse — open
  • #1722 by @themanoj-025 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
api

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

  1. Host a Qdrant instance with TLS enabled using a private CA or self-signed certificate.
  2. Attempt to connect using the Python client, explicitly providing the verify parameter:
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())

  1. 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

  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.

More from qdrant/qdrant-client

All issues in qdrant/qdrant-client

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.