Azure / azure-cosmos-dotnet-v2

Contains samples and utilities relating to the Azure Cosmos DB .NET SDK
MIT License
579 stars 837 forks source link

Emulator "Unknown server error" on mongoDB document insertion #332

Open ababutski opened 7 years ago

ababutski commented 7 years ago

on two PCs when i'm trying to insert new document via mongoDB API always recivce "Unknown server error 1". Tried from my application and RoboMongo with same result. Windows 10 Professional

codermrrob commented 6 years ago

I am getting exactly the same issue. A simple InsertOne or InsertOneAsync always results in "Unknown server error" (is that an unknown server or an unknown error on the server - great error message!).

Same error from Robo 3T.

Same code works perfectly when writing to local MongoDb just not to the local Cosmos db emulator.

I can insert with the browser based emulator Explorer but I suspect it doesn't use the MongoDb API.

connection string is: mongodb://localhost:C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==@localhost:10250/admin?ssl=true

For now using a local mongodb instead.