Back

AttributeError: 'Request' object has no attribute 'bodyRaw'

  • 0
  • Functions
bluesky
10 Sep, 2023, 12:25

I have error on function with python. Can someone help me what is going on?

TL;DR
User is experiencing an AttributeError when trying to access the 'bodyRaw' attribute of a 'Request' object in Python. Another user suggests checking Python examples for proper snake-case usage and mentions changing 'queryString' to 'query_string'. A solution is proposed to change 'bodyRaw' to 'body_raw' in the Python code.
Meldiron
10 Sep, 2023, 12:46

Good catch! It should be body_raw in Python

Meldiron
10 Sep, 2023, 12:47

same for queryString -> query_string

Meldiron
10 Sep, 2023, 12:49

@VincentGe I believe those came from docs. Let's double check all Python examples to use proper snake-case (underline)

bluesky
10 Sep, 2023, 12:51

Owh yeah, it work's, thank's @Meldiron

VincentGe
11 Sep, 2023, 01:20
VincentGe
11 Sep, 2023, 01:21

@Meldiron Fix

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