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
- Cloud Function Deployment Issue – Timeou...
Impossible to deploy a function for more than an hour. My project ID is: 69cc7a82000b42b8f5e2 Here's the error I get after waiting 15 minutes: Synchronous funct...
- Dart runtime functions are timing out an...
My appwrite function is not executing at all and showing the error in error logs: I tried redeploying. Still no luck. I have set the function to ise maximum re...
- Event-triggered function executes but pr...
Hello! I'm running self-hosted Appwrite 1.9.0. I have a Dart function (tried both dart-3.5 and dart-3.10 runtimes) with these events configured: ```teams.staff...