Open Makciek opened 3 months ago
regarding the original issue - it looks like the newest version returns the malformed response when there are no records as a result of the query - sorry for not creating a separate issue but I can't create a simple repro for it because of above
the same code works when running on the non-docker emulator
looks like using
--env AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=127.0.0.1
helps with the issue of hangning
and here's the simplest repro for my 'original' issue:
using
var query = container
.GetItemLinqQueryable<Model>
(
linqSerializerOptions: new CosmosLinqSerializerOptions()
{
PropertyNamingPolicy = CosmosPropertyNamingPolicy.CamelCase
},
requestOptions: new QueryRequestOptions()
{
PartitionKey = new PartitionKey(Guid.NewGuid().ToString())
}
)
.Where(x => true);
instead fixes the issue
@sajeetharan hey, my workaround is just a workaround - the issue is still there the new docker emulator behaves differently from the actual cosmos db/windows emulator
Describe the bug After pulling the newest image my integration tests started breaking with some very strange errors. So I tried to create the simplest repro but I found out that even just the basic scenario copied from docs(https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-develop-emulator?tabs=docker-linux%2Ccsharp&pivots=api-nosql#import-the-emulators-tlsssl-certificate) doesn't work.
To Reproduce Follow https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-develop-emulator?tabs=docker-linux%2Ccsharp&pivots=api-nosql#import-the-emulators-tlsssl-certificate
When running:
Application(.net 8, Microsoft.Azure.Cosmos:3.40.0) hangs, the output windows print the following:
Expected behavior Doesn't hang
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Docker Images Used:
**Arguments && Environment variables to start Docker: docker run --publish 8081:8081 --publish 10250-10255:10250-10255 --interactive --tty mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest
Docker Environment