Azure Cosmos DB Preview Emulator with EF Core and Enrich API fails writing to the database #8177
Open
1 task done
Labels
area-integrations
Issues pertaining to Aspire Integrations packages
azure
Issues associated specifically with scenarios tied to using Azure
azure-cosmosdb
Issues related to Azure CosmosDB
Is there an existing issue for this?
Describe the bug
I've issues running my Codebreaker solution using the Azure Cosmos DB preview emulator with the Enrich API using EF Core - it's running with the local installed emulator, and in Azure. With the preview emulator it fails.
Now I tried using @davidfowl project https://github.com/davidfowl/aspire-ai-chat-demo. With the code as it is, everything runs successfully.
Changing it to use the .NET Aspire Enrich API, it fails.
Expected Behavior
When changing ChatApi/Program.cs from
https://github.com/davidfowl/aspire-ai-chat-demo/blob/6296a504010e77fce550c8f2aba893ed0e4f34cf/ChatApi/Program.cs#L7
to
https://github.com/christiannagel/aspire-ai-chat-demo/blob/192969f0eb254b39639849b005f90db4ac5dcc84/ChatApi/Program.cs#L8-L9
No data is written to the database. I saw a
DbUpdateException
.Steps To Reproduce
No response
Exceptions (if any)
I don't know how this relates to changing the configuration to the Enrich API.
.NET Version info
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: