Hi there, In my python function I want to search for an user by email. This is the code I wrote and the imports used.
TypeScript
from appwrite.client import Client
from appwrite.services.users import Users
from appwrite.services.storage import Storage
from appwrite.query import Query
[...]
found_users = users.list([Query.equal("email", mail)])
Now when I run this code I get the following error.
TypeScript
appwrite.exception.AppwriteException: Invalid `queries` param: Invalid query: Invalid query
So far I've primarily written dart functions, so I am a little bit confused what needs to be done differently in python. What am I doing wrong here?
TL;DR
Issue: Developer is encountering an error "Invalid query" in Python when trying to search for a user by email using Appwrite.
Solution: The issue might be with the way the query is constructed. The correct syntax for querying in Python might be slightly different. Try modifying the query construction part in the code to ensure it follows the correct syntax for Python.Recommended threads
- THE COLUMNS STUCK ON PROCESSING HOW DO I...
I HAVE SELF HOSTED THE APPWRITE ON VPS
- Impossible to create project via CLI?
Is it possible to create a new project via the appwrite CLI ? I need to create a few projects for something I'm working on and because i don't want to do it man...
- Understanding S3 setup with appwrite
Hey, i'm planning to change the storage from local to S3, tho i have some questions to see before starting the migration. 1. Does all the `/storage/<storage_ty...