Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: tip "Chroma is running in http-only client mode" in local where perform "chroma run --path C:/path" #3731

Open
Elderppp opened this issue Feb 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Elderppp
Copy link

Elderppp commented Feb 7, 2025

What happened?

error informations
RuntimeError: Chroma is running in http-only client mode, and can only be run with 'chromadb.api.fastapi.FastAPI' or 'chromadb.api.async_fastapi.AsyncFastAPI' as the chroma_api_impl.

this problem can be resolve by delete line 353 code in "config.py" file

if is_thin_client:
            # The thin client is a system with only the API component
            if settings["chroma_api_impl"] not in [
                "chromadb.api.fastapi.FastAPI",
                "chromadb.api.async_fastapi.AsyncFastAPI",
            ]:
                raise RuntimeError(
                    "Chroma is running in http-only client mode, and can only be run with 'chromadb.api.fastapi.FastAPI' or 'chromadb.api.async_fastapi.AsyncFastAPI' as the chroma_api_impl. \
            see https://docs.trychroma.com/guides#using-the-python-http-only-client for more information."
                )

Versions

Windows 10

Relevant log output

@Elderppp Elderppp added the bug Something isn't working label Feb 7, 2025
@tazarov
Copy link
Contributor

tazarov commented Feb 7, 2025

hey @Elderppp, the error you are encountering usually relates to having chromadb-client (thin Python client) instead of the core chromadb package. Can you check your pip deps (pip list) and make sure to uninstall chromadb-client and install pip install --upgrade chromadb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants