What happened?
When using the following code (Python client):
client = HTTPClient(host="http://localhost", port=8000)
the URL is constructed properly as http://localhost:8000. However, if you try this instead:
client = HTTPClient(host="http://10.10.10.10", port=8000)
the URL is incorrectly constructed as http://10.10.10.10.
I only noticed this because when I used the second example, I got the following relevant logs at different points when initializing the Chroma client (I have a reverse proxy running on port 80):
Redirect location: 'https://10.10.10.10/api/v2/auth/identity'
ValueError: Moved Permanently
Versions
Chroma (chromadb-client) v1.3.3, Python 3.12.11
Relevant log output