
Hello guys, from the api docuation of livekit.io https://docs.livekit.io/realtime/server/webhooks/#Receiving-webhooks, it is stated that to recieve webhook the `req.get('authorization') will need to be called, but calling it in Appwrite Cloud function its outputting
at Module.default (file:///usr/local/server/src/function/src/main.js:29:48)
at execute (/usr/local/server/src/server.js:157:48)
at async action (/usr/local/server/src/server.js:174:13)
at async /usr/local/server/src/server.js:10:9```
How can this be resolved?

The request object in Appwrite Functions is slightly different to what would normally be expected in Express, this might give a clearer idea as to what you're looking for https://appwrite.io/docs/products/functions/develop#request

It looks like it's trying to get the value of the authorization
header which I think is done like this
const authorization = req.headers["Authorization"];
I'm not sure if that's 100% correct as I'm trying to do it from memory but the link I sent will give a much better idea as to what you need to be doing
Recommended threads
- fix project error
https://cloud.appwrite.io/console/project-nyc-6610481f003bf0704275 Hi, could someone help with this issue: error: Invalid Argument Project with the requested I...
- Flutter - FCM: App Crashes when receivin...
- Request: When Will Appwrite Sites Waitli...
Hey team! π I recently joined the waitlist for Appwrite Sites on Cloud and got the confirmation email that says: "You've successfully joined the Sites waitli...
