Open lonewarrior556 opened 4 years ago
@lonewarrior556 Cosmos JavaScript SDK developer here. Which SDK are you using to talk to Cosmos? Can you force it to use gateway mode? That may solve this issue.
RNTB is the custom TCP protocol used by Cosmos direct mode. It is only used in the .NET and Java SDKs when in "direct" mode. JavaScript and Python talk to the cosmos HTTP rest API which the cosmos-server
project is meant to simulate.
Hey @southpolesteve yea lib is in .net It's prebuilt so I can't change much except for the endpoint using an env variable.
In the absence of a linux docker cosmodb emulator I've resorted to using this, which (when I hack it to return something for that endpoint seems to work after some delay.. perhaps it times out and connect thru https?)
Thanks to whoever posted that as a possibility here: https://github.com/Azure/azure-cosmos-db-emulator-docker/issues/17
Hello, I encounter this error but this seems related with the DirectoConnectionMode https://docs.microsoft.com/en-us/azure/cosmos-db/sql-sdk-connection-modes
It seems to work when specifying explicitly .WithConnectionModeGateway()
instead of WithConnectionModeDirect()
on CosmosClientBuilder
The code Lib I am using makes a query to
//addresses/?$resolveFor=dbs&$filter=protocol%20eq%20rntbd
when it launches..it expects Json looking like this:
without the
$filter=protocol%20eq%20rntbd
it includes https iefirst of all wth is rntbd protocol, can it be mocked?
But the issue is that with out
//addresses/blah
returning anything, The Lib crashes parsing non existent json. Can this be added to routes?