Closed michaelortnersanube closed 9 months ago
I don't think we implemented room-booking in ews, It might need more work. Are you using this against an on-prem exchange? If not, you should be using the msgraph implementation.
auth.js and config.js is basicly the same file just: https://github.com/tomaskovacik/MeetEasier/blob/2234bca31241d46ebb73815002a868a365a9b5aa/config/auth.js
Hello Sir,
we use Microsoft 365 and have made all settings like here: https://github.com/probits-as/MeetEasier
We see the room, but if we want End it our extend it, it throws the error on the first post. Maybe i have something missunderstood?
Aah, try replacing app/routes.js with this file: https://github.com/probits-as/MeetEasier/blob/feat/roombooking/app/routes.js
The problem is that the route /api/roombooking is using the wrong client, it's using the ews and not msgraph.
Hello Sir,
first: Thanks for your help.
Second: I have replaced routes.js file with the file that you have send me and made following:
npm run build npm start
and then go to the web appliance. I tried to End a Meeting, its not working. Next error:
Error: Cannot find module './msgraph/roombooking.js' Require stack:
Ok, not sure what the status is here on booking in this fork, I have a feature branch with booking that should work, again it's just a POC.
You need theese files too in app/msgraph folder: https://github.com/probits-as/MeetEasier/blob/feat/roombooking/app/msgraph/graph.js https://github.com/probits-as/MeetEasier/blob/feat/roombooking/app/msgraph/roombooking.js
Hello Sir,
we are close to the end of finding the problem :D
Now following error comes:
Route Room Booking
besprechungsraum@example.at | Besprechungsraum 1 | 2023-05-25T12:00:00.000Z | 2023-05-25T12:07:36.765Z | EndNow
GraphError: Access is denied. Check credentials and try again.
at new GraphError (/home/MeetEasier/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphError.js:34:28)
at Function.GraphErrorHandler.constructErrorFromResponse (/home/MeetEasier/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:62:22)
at Function.
This are the permissions:
I think you are missing the Calendars.ReadWrite, it should be of type Application and not Delegated.
Now working, thanks for the help!
No problem, glad you got it working 😊
Hello,
i get an error if i want to extend a booking or make a booking of a meeting:
` oute Room Booking besprechungsraum@example.com | Besprechungsraum 1 | 2023-05-17T11:45:24.702Z | 2023-05-17T12:15:24.702Z | BookNow Error: Cannot find module '../../config/auth/auth.js' Require stack:
/home/MeetEasier/server.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.BookRoom (/home/MeetEasier/app/ews/roombooking.js:4:14) at /home/MeetEasier/app/routes.js:82:7 at Layer.handle [as handle_request] (/home/MeetEasier/node_modules/express/lib/router/layer.js:95:5) at next (/home/MeetEasier/node_modules/express/lib/router/route.js:144:13) at Route.dispatch (/home/MeetEasier/node_modules/express/lib/router/route.js:114:3) at Layer.handle [as handle_request] (/home/MeetEasier/node_modules/express/lib/router/layer.js:95:5) at /home/MeetEasier/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/home/MeetEasier/node_modules/express/lib/router/index.js:346:12) at next (/home/MeetEasier/node_modules/express/lib/router/index.js:280:10) at SendStream.error (/home/MeetEasier/node_modules/serve-static/index.js:121:7) at SendStream.emit (events.js:314:20) at SendStream.error (/home/MeetEasier/node_modules/send/index.js:270:17) `
if i go to config/ i don't find any auth folder or auth.js