
I am using the Python SDK version 9.0.3 (latest) and I am seeing this generic HTTP error pop up.
400 request cannot have request body
The code is dead simple :
TypeScript
from appwrite.client import Client
from appwrite.services.databases import Databases
from appwrite.services.users import Users
from appwrite.exception import AppwriteException
from app.core.config import settings
client = Client()
(client
.set_endpoint(settings.appwrite_endpoint)
.set_project(settings.appwrite_project_id)
.set_key(settings.appwrite_api_key)
)
database = Databases(client)
users = Users(client)
def verify_user_id(user_id: str) -> bool:
try:
users.get(user_id)
return True
except AppwriteException as e:
print(f"Error verifying user ID '{user_id}' : {e.code} {e.response} {e.message}")
return False
Other support requests seem to have the same problem since the release of the Network feature.
Has anyone found a fix for this?
TL;DR
Developers using Python SDK version 9.0.3 are encountering a '400 request cannot have request body' error when using the `users.get(user_id)` function. This error seems to be linked to the Network feature update. A potential fix for this issue has not been identified at this time.Recommended threads
- [HELP]WebSocket connection to 'wss://clo...
- I would like to know if appwrite impleme...
I would like to know if appwrite implements RLS or similar effects? My requirement is to allow users to create tasks. It's simple. But I want them to only creat...
- Domain name verification process blocked...
So I'm hosting my front end on Vercel and need to add the production environment domain name so that Appwrite can work in Production. But when I add in the CNAM...
