Web Developer
I am getting the same error in appwrite python sdk calling either of storage.list_buckets() or storage.get_bucket(bucket_id='<bucket_id>').
Traceback (most recent call last):
File "/images/main.py", line 13, in
main()
~~~~^^
File "/images/main.py", line 9, in main
result = storage.list_buckets()
File "/usr/local/lib/python3.13/site-packages/appwrite/services/storage.py", line 42, in list_buckets
return self.client.call('get', api_path, {
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
'content-type': 'application/json',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
}, api_params)
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/appwrite/client.py", line 137, in call
raise AppwriteException(response.text, response.status_code, None, response.text)
appwrite.exception.AppwriteException: request cannot have request body
using appwrite==9.0.3
I think the line in client.py that assigns data={} for all requests might be the reason for the error. But open to ideas and solutions