
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
- Collection Permission issue
I am facing issue in my Pro account. "Add" button is disabled while adding permission in DB collection settings.
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
- custom requirements.txt file
How do I specify a custom requirements.txt file when creating a serverless function through the Appwrite console?
