Issues running the Sample.Datasync.Server.SingleContainer project #395
-
Hello, I'm trying to run the Sample.Datasync.Server.SingleContainer sample project using the Azure Cosmos DB Emulator (the Linux vnext-preview version) and if I try and execute any of the http calls such as the: GET {baseendpoint}/tables/TodoItem I receive the following json error but I am unsure if I have configured something incorrectly or if this is an issue with the emulator (or I'm missing something obvious of course), has anyone else come across this exception while running the CosmosDB sample? System.Text.Json.JsonException: The JSON value could not be converted to System.Int32. Path: $[0] | LineNumber: 0 | BytePositionInLine: 2. If I override the QueryAsync method on the TableController I am able to get around the error by directly using the Repository and avoiding the call to the CountAsync method on the CosmosTableRepository. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
FWIW - I have the same problem with the Azure Consos DB Emulator; unfortunately, I can't replicate on a real server. I'd love to be able to transition to using a TestContainer for testing, but it's not possible. I believe this to be a bug in the emulator. |
Beta Was this translation helpful? Give feedback.
FWIW - I have the same problem with the Azure Consos DB Emulator; unfortunately, I can't replicate on a real server. I'd love to be able to transition to using a TestContainer for testing, but it's not possible. I believe this to be a bug in the emulator.