You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ChromaDB.Client.ChromaException: Unexpected status code: NotFound #83
I have ChromaDB.Client version 1.0.0. and chromadb/chroma:1.0.16.dev95 running locally in Docker. Below is how I create a client, check server health and get/create a collection. The server health is okay. Verified by calling the Heartbeat method/endpoint but GetOrCreateCollection always fails with the exception ChromaDB.Client.ChromaException: Unexpected status code: NotFound
Ps note I have also tried using chromadb/chroma:0.6.4.dev226 with no success.
using var httpClient = new HttpClient();
var configOptions = new ChromaConfigurationOptions(uri: ChromaDbUri);
var client = new ChromaClient(configOptions, httpClient);
try
{
// 1. Check server health. Succeeds
await client.Heartbeat();
// 2. Get or Create collection. Fails always
var collection = await client.GetOrCreateCollection(TestCollectionName);
}
catch (ChromaException ex) when(ex.InnerException?.Message.Contains("NotFound") == true){}
catch (ChromaException ex) when (ex.InnerException?.Message.Contains("MethodNotAllowed") == true){}
catch (Exception ex)
{
// Catches the ChromaException: Unexpected status code: NotFound
}
Activity
Chris-Maina commentedon Oct 18, 2025
Rookie mistake. Missed ending
/when supplying the chromaDB uri.Laurianti commentedon Oct 3, 2026
ChromaDotNet.Client also accepts the URI without the trailing slash, or with just the address of the server (#84).