Back

Appwrite 1.4. function error in getting data

  • 0
  • Functions
polbuhanky
9 Sep, 2023, 09:41

I got that error: Traceback (most recent call last): File "/usr/local/server/src/server.py", line 165, in handler output = await asyncio.wait_for(execute(context), timeout=safeTimeout) File "/usr/local/lib/python3.9/asyncio/tasks.py", line 479, in wait_for return fut.result() File "/usr/local/server/src/server.py", line 158, in execute output = userModule.main(context) File "/usr/local/server/src/function/src/main.py", line 31, in main str_data = context.req.bodyRaw AttributeError: 'Request' object has no attribute 'bodyRaw'

TL;DR
The user encountered an error when trying to retrieve data using Appwrite 1.4. They received an AttributeError with the message "'Request' object has no attribute 'bodyRaw'". One suggestion was to create an issue on GitHub so that the documentation could be updated. Another suggestion was to check if using 'body_raw' instead of 'bodyRaw' could solve the issue. No solution was provided in the thread.
Drake
9 Sep, 2023, 16:02

Would you be able to create an issue on GitHub so we can update the docs? https://appwrite.io/docs/functions-develop#request

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more