I have a node.js application that is deployed to azure using CosmosDB and the MongoDB API. My application uses mongoose which works seamlessly in 4.13.9.
My application
The password for the Azure Cosmos DB instance I got ended with ==
, hence the illegal characters message. These characters must be urlencoded.
An equals sign =
urlencoded is %3D
.
A properly encoded connection string for the password jitsu==
could look like mongodb://user:jitsu%3D%3D@localhost:27017/dbname?ssl=false
.
Also be aware that the connection strings you get from the Cosmos DB blade in the Azure Portal doesn't include the database name.