azure-samples / communication-services-contoso-med-app Goto Github PK
View Code? Open in Web Editor NEWContoso Medical Application built using Azure Communication Services
License: MIT License
Contoso Medical Application built using Azure Communication Services
License: MIT License
Please provide us with the following information:
x
)- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Windows 10 20H2
How to generate jwtPrivateKey in communication-services-contoso-med-app-main\contoso-node-api\config.json ?
"mongodbConnection":"<COSMOS_DB_OR_MONGODB_CONNECTION_STRING>",
"dbName": "<DATABASE_NAME>",
"connectionString": "<AZURE_COMMUNICATION_SERVICES_CONNECTION_STRING>",
"jwtPrivateKey": "<JWT_PRIVATE_KEY_FOR_AUTHENTICATION>",
"endpoint": "<AZURE_COMMUNICATION_SERVICES_ENDPOINT>",
"smsLogicAppEndpoint": "<AZURE_COMMUNICATION_SERVICES_SMS_LOGIC_APP_HTTP_TRIGGER_ENDPOINT>",
"qnaMakerEndpoint": "<QNA_MAKER_ENDPOINT_URL>",
"qnaMakerEndpointKey": "<QNA_MAKER_ENDPOINT_KEY>"
Fail to createChatThreadId => token refresh of refresh args undefined
Which @azure/communication SDK version are you using ?
Thanks! We'll be in touch soon.
Please provide us with the following information:
x
)- [x] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
npm install
npm run start
hyounoo@Hyounwoos-MacBook-Pro contoso-node-api % npm run start
[email protected] start /Users/hyounoo/Github/communication-services-contoso-med-app/contoso-node-api
node ./bin/www
connecting to cosmosdb...
internal/modules/cjs/loader.js:834
throw err;
^
Error: Cannot find module '@azure/communication-configuration'
Require stack:
node ./bin/www
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/hyounoo/.npm/_logs/2020-12-10T03_15_26_115Z-debug.log
hyounoo@Hyounwoos-MacBook-Pro contoso-node-api %
Expected to run the api server
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
macOS Catalina
10.15.7
Had some issue configuration config.json without detailed documentation.
I could create Azure CosmosDB with MongoDB Api option but the document didn't specified which to choose.
AlsoI couldn't fill the jwtPrivateKey as there is no explanation where to get this token key.
It would be better if the document describes how to deploy this to azure with step by step description(with some pictures :D).
Thanks! We'll be in touch soon.
Please provide us with the following information:
x
)- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 10
Where do you get the values for:
KEY_AUTH_TOKEN: "AUTH_KEY",
KEY_USER_TYPE: "USER_TYPE",
KEY_USER_NAME: "USER_NAME",
KEY_DISPLAY_NAME: "DISPLAY_NAME",
KEY_SPOOL_ID: "SPOOL_ID",
KEY_SPOOL_TOKEN: "SPOOL_TOKEN",
There is no where in the documentation that mentions these tokens and keys?
Thanks! We'll be in touch soon.
I am unable to run all features of app like chat bot conversation, video call, doctor-patient call. Need help/more info on the services to be created as pre-requisites for running the application
Please provide us with the following information:
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)
Set up projects to the point where everything is working, except for communication functions on the Web App.
TypeError: Cannot read property 'threadId' of undefined
Unhandled Rejection (TypeError): azure_communication_calling__WEBPACK_IMPORTED_MODULE_2_.Renderer is not a constructor
non-working buttons do not return error, simply nothing happens after click
Chat + Video to work
Windows 10
One issue seems to be related to currentThreadInfo , as it is stating cannot read threadId of undefined. Thanks! (Line 32 of ChatArea.js)
Thanks! We'll be in touch soon.
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)
- Deploy all pre-requisites/components/solutions to Azure
- build version of the contoso-web-app
- full code of contso-node-api
- Login as Doctor and Patient on separate browsers to contoso-web-app
- Create a booking with a Doctor, and start Chat
Following log messages are seen for the contoso-node-api solution:
creating new thread...
initializing chat client...
TypeError: CommunicationUserCredential is not a constructor
at Object.createThread (C:\home\site\wwwroot\services\chat.service.js:62:50)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async createThread (C:\home\site\wwwroot\controllers\chat.controller.js:8:20)
POST /chat/createThread 200 205.443 ms - -
A new chat thread should be created and message should be delivered to the other party.
Windows 7, 8 or 10.
Thanks! We'll be in touch soon.
What am I doing wrong, please?
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)
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.
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)
I expected the API to run.
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 10
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
Thanks! We'll be in touch soon.
Please provide us with the following information:
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)
run application with parameters filled in and call other person
Unhandled Rejection (TypeError): azure_communication_calling__WEBPACK_IMPORTED_MODULE_2_.Renderer is not a constructor
LocalVideoPreviewCard.componentDidMount
C:/Git Clones/communication-services-contoso-med-app/contoso-web-app/src/pages/chat/LocalVideoPreviewCard.js:21
Unhandled Rejection (CommunicationServicesError): Not able to subscribe to event callStateChanged, unknown event name
Unhandled Rejection (CommunicationServicesError): Not able to subscribe to event isRecordingActiveChanged, unknown event name
having a video call
Windows 10
Thanks! We'll be in touch soon.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.