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
- My account is blocked so please check an...
My account is blocked so please unblock my account because all the apps are closed due to which it is causing a lot of problems
- Applying free credits on Github Student ...
So this post is kind of related to my old post where i was charged 15usd by mistake. This happens when you are trying to apply free credits you got from somewh...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...