I had to do this sort of code to get to the keys and the value of the body. Is this completely normal? body = context.req.body_raw match = re.match(r"{\s*(\w+):\s*(\w+)\s*}", body)
Body or body row is not a json, How did you plan to reach the keys?
The documentation doesn't help
thanks for the help
What is body_raw and how are you executing the function?
I just found a usage example here: https://appwrite.io/docs/functions-examples
I'll try to see if it works
You can check more information about the req var here: https://appwrite.io/docs/functions-develop#request
you should use req.body instead of req.bodyRaw
Recommended threads
- Functions not executing after usage rese...
Hi team, Last month my project hit 100% usage and functions stopped working (expected). Now the new month has started and usage has reset, requests are going ...
- Functions never end and always fail (sta...
Hi ! I'm using Appwrite Cloud Pro and function execution from appwrite website is KO. Deploying starter function template, execution is always Failed and the ...
- Provider error when creating a function ...