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]: Incorrect error message from HTTP API. #2882

Open
levand opened this issue Sep 30, 2024 · 0 comments
Open

[Bug]: Incorrect error message from HTTP API. #2882

levand opened this issue Sep 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@levand
Copy link
Contributor

levand commented Sep 30, 2024

What happened?

I called my local Chroma's HTTP API directly to create a collection. However, I accidentally included tenant and database params (since I was also doing some work with Chroma cloud): POST http://localhost:8000/api/v1/collections?tenant=my_tenant&database=my_database.

I got back a 500 error: UniqueConstraintError('Collection 1586333d-0f1d-4f3a-85b3-fc5887ac79f7 already exists')

This error is actively wrong and misleading, given that the true error is an incorrect tenant. It is also highly confusing since it still happens even when the collection name is definitely new and unique, and when get_or_create is set to true.

Note that this is not possible through the Chroma Python API since it gives a user-friendly error when attempting to create a Collection with an invalid tenant.

Versions

Chroma 0.5.6, Python 3.11, MacOS

Relevant log output

No response

@levand levand added the bug Something isn't working label Sep 30, 2024
@levand levand changed the title [Bug]: [Bug]: Incorrect error message from HTTP API. Oct 1, 2024
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

1 participant