
I am trying to transfer data from the Front-End (Flutter) to AppWrite function with dart 3.1 runtime I have previously managed to do it with Node.js, but in Dart it is not working form me.
This is an example of front End Code
Future<Map<String, dynamic>> runFunctionExecution( ) async { var funcRes = await functions.createExecution( functionId: FunctionId, body: jsonEncode({ "headers": "The Headers for test", "body": "The body for test ", }), );
This is the function I am deploying to AppWrite
Future main(final context) async { context.log(jsonEncode(context.req.body)); context.log(jsonEncode(context.req.payload)); }
It is deploying successfully and log shows the result , but cannot see my data sent from the front-end.
I am definitely missing something in reading the req data Tried every possible thing I could think of, no luck
Recommended threads
- 25 document limit
Unable to bypass the 25 document limit: https://github.com/Mooshieblob1/GenerateImagesPreview
- TypeError: fetch failed on Appwrite Func...
I keep getting this error even when using the starter function. My Function endpoint is similar to app_domain. I have tried proxying the subdomain via Cloudflar...
- Workaround duplicate main containers sti...
Hi, with 1.6.0 or 1.6.1 I had this workaround implemented in the `docker-compose.yml` with the duplicate function containers, to prevent that deadlock issue of ...
