IPv6 literal host: QdrantClient builds invalid REST URL and gRPC target
Maintainers usually reply within 6 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- backend, networking
Research direction
Start in qdrant_remote.py and connection.py, where the issue shows REST URLs and gRPC targets being assembled; compare how the Go client uses net.JoinHostPort in config.go. Check existing tests for URL parsing and connection targets, then add coverage for bare IPv6 literals with both transports. Done when both client entry points produce valid IPv6 addresses and the relevant tests pass.
Written by the indexing model from the issue text.
Description
Description
QdrantClient cannot connect to a node by its IPv6 address literal, via either entry point:
QdrantClient(url="http://[fd00::1]:6333") # rest_uri -> "http://fd00::1:6333" (invalid)
QdrantClient(host="fd00::1") # same for REST + gRPC target "fd00::1:6334"
Root cause
urllib3.util.parse_url().host returns an IPv6 literal without brackets, and the address is then reassembled manually in qdrant_remote.py:
address = f"{self._host}:{self._port}" # "fd00::1:6333"
base_url = f"{self._scheme}://{address}" # "http://fd00::1:6333"
and in connection.py:
grpc.insecure_channel(f"{host}:{port}") # target "fd00::1:6334" — unparsable
Workaround
QdrantClient(host="[fd00::1]", port=6333) — pre-bracketed hosts pass through and work.
Expected
Bare IPv6 literals should work for both transports. The Go client already handles this via net.JoinHostPort (config.go, getAddr).
- 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
-
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