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
- How to generate a database-setup script ...
I've written a vue.js webapp with appwrite-cloud-db (including relations) and everything works just perfectly! Now I want to release this webapp as an open sou...
- Private identifiers are only available w...
Hello folks, hope you all doing fine. Have any of you faced the error below? ```sh node_modules/node-appwrite/dist/id.d.ts:2:5 - error TS18028: Private iden...
- Returning specific attributes with Graph...
I'm trying to use the GraphQL API to return a single attribute along with the _id, rather than the entire document. According to the documentation, the followin...