What am I doing wrong, please?
This issue is for a: (mark with an x
)
- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
I created a database in Cosmos DB emulator called ContosoMedApp.
I placed that database name in config.json:
"dbName": "ContosoMedApp",
I used the Mongo Connection String from Cosmos DB emulator in config.json:
"mongodbConnection": "mongodb://localhost:C2y6yDjf5%2FR%2Bob0N8A7Cgv30VRDJIWEHLM%2B4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw%2FJw%3D%3D@localhost:10255/admin?ssl=true",
I performed npm install and npm run start as per instructions.
Any log messages given by the failure
I receive the error:
connecting to cosmosdb...
C:\code\Azure Communication Sevices\Azure-Samples-communication-services-contoso-med-app-01April2021\contoso-node-api\controllers\user.controller.js:5
throw new Error("Update config.json
with connection string");
^
Error: Update config.json
with connection string
at Object. (C:\code\Azure Communication Sevices\Azure-Samples-communication-services-contoso-med-app-01April2021\contoso-node-api\controllers\user.controller.js:5:11)
Expected/desired behavior
I expected the API to run.
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 10
Versions
VS Code
Version: 1.55.0 (user setup)
Commit: c185983a683d14c396952dd432459097bc7f757f
Date: 2021-03-30T16:01:55.261Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19042
Mention any other details that might be useful
Thanks! We'll be in touch soon.