I created a cloud function and used the generated url as callback URL so that the function will be triggered each time I need a response from a third party API but I wasn't able to fetch the data it was sending to my function (what I used as the call back url) despite using both context.body
and context.rawBody
for dart.
should be context.req.body
.
Future<dynamic> main(final context) async {
final bodyRaw = context.req.bodyRaw;
final body = json.encode(context.req.body);
return context.res.send("OK", 200);
}
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...