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
- Repository directory size should be less...
Whenever I create a function i get the error above. Is there a way to get around this? How do I fix this?
- "Waiting" executions
For my React Native App, I have had no issues deploying a function in Appwrite & the executions either working or failing. Now I am getting status code - 0 & j...
- Deployed to live, but functions only wor...
Deployed my serveless functions, noticed a request is only sent when I switch on my vpn, I have a feeling it's an ip related thing, I'd like some help troublesh...