Skip to content

'JSON deserialization for type 'ChromaDB.Client.Models.Responses.CollectionEntriesQueryResponse' was missing required properties, including the following: data' #81

Open

Description

@mubarak0443

I am getting this error "'JSON deserialization for type 'ChromaDB.Client.Models.Responses.CollectionEntriesQueryResponse' was missing required properties, including the following: data'
"
I am using dotnet C# and getting this issue while retreving query...not sure ...please help..

Code :

var queryEmbedding = new ReadOnlyMemory(new float[] { 0.15f, 0.25f, 0.35f, 0.45f }); // A query embedding
var queryResults = await collectionClient.Query(
queryEmbeddings: new List<ReadOnlyMemory> { queryEmbedding }, // Changed from array to List
nResults: 1, // Number of results to return
include: ChromaQueryInclude.Metadatas | ChromaQueryInclude.Documents | ChromaQueryInclude.Distances
);

Activity

  1. mubarak0443 commented on Aug 3, 2025

    @mubarak0443
    Author

    hi friends...please help on above request..

  2. ssone95 commented on Aug 5, 2025

    @ssone95
    Owner

    hi friends...please help on above request..

    Hi @mubarak0443 - which version of the Chroma database (and Client library) do you use?

    Because it depends on a) version of the database (potential mismatch between client version and supported Chroma DB version), b) format of the data - whether the data inside Chroma is indeed structured in the expected format.

    Did you insert the mentioned data through this library, or using some other kind of SDK?

  3. justintoth commented on May 11, 2026

    @justintoth

    Same issue here... I inserted the data using this same SDK, so the data formats should be compatible. The chromadb version is 1.5.8. The ChromaDB.Client version is 1.0.0.

    ChromaDB.Client.ChromaException
    HResult=0x80131500
    Message=JSON deserialization for type 'ChromaDB.Client.Models.Responses.CollectionEntriesGetResponse' was missing required properties including: 'data'.
    Source=ChromaDB.Client
    StackTrace:
    at ChromaDB.Client.Common.HttpClientHelpers.d__101.MoveNext() at ChromaDB.Client.Common.HttpClientHelpers.<Post>d__42.MoveNext()
    at ChromaDB.Client.ChromaCollectionClient.d__6.MoveNext()
    at ChromaDB.Client.ChromaCollectionClient.d__5.MoveNext()
    at Rpr.Tests.GenAiTests.GenAiPocTests.d__2.MoveNext() in C:\Dev\RPR\Tests\GenAiTests\GenAiPocTests.cs:line 38

    This exception was originally thrown at this call stack:
    [External Code]

    Inner Exception 1:
    JsonException: JSON deserialization for type 'ChromaDB.Client.Models.Responses.CollectionEntriesGetResponse' was missing required properties including: 'data'.

    var handler = new VectorDbApiV1ToV2DelegatingHandler
    {
    	InnerHandler = new HttpClientHandler()
    };
    var httpClient = new HttpClient(handler);
    var config = new ChromaConfigurationOptions(CHROMA_DB_URL);
    var client = new ChromaClient(config, httpClient);
    
    var collection = await client.GetOrCreateCollection(CHROMA_DB_COLLECTION_NAME);
    var configOptions = new ChromaConfigurationOptions(uri: CHROMA_DB_URL);
    var collectionClient = new ChromaCollectionClient(collection, configOptions, httpClient);
    
    var subjectPropertyId = TestData.Instance.Residential.CMA_PROPERTY.PropertyId!.Value.ToString();
    var getResult = await collectionClient.Get(subjectPropertyId, include: ChromaGetInclude.Metadatas | ChromaGetInclude.Documents | ChromaGetInclude.Embeddings);
    
  4. Laurianti commented on Oct 3, 2026

    @Laurianti

    Chroma 1.x does not send data in the query response, and the client requires it. In ChromaDotNet.Client it is optional (#84).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions