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
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...