i want to access some data when a user create a document and also when a user delete a document
when I log out this output log({"eventTriggered": JSON.stringify(req.body)}); i get the following
so now when i try to access the individual object let says postType it log out empty as though nothing is inside,
so i decided to use JSON.parse(req.body) i got the following errors
at JSON.parse (<anonymous>)
at Module.default (file:///usr/local/server/src/function/src/main.js:24:28)
at execute (/usr/local/server/src/server.js:141:48)
at async /usr/local/server/src/server.js:158:13```
Please, what i'm i doing wrong??
How are you trying to access the data?
i have resolved it
i change the JSON.stringify(req.body) to JSON.parse(req.bodyRaw) and it fixed it
[SOLVED] Can't Access Data in the response payload when Function is trigger
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Appwrite Storage error 503s for automate...
I'm facing error 503s from Appwrite after about 5-6 seconds of making AI requests from my tool with images and files above 20MB (=> not inline base64 used, but ...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...