
you need to create an API key, and give it the documents.read
permission. Have you done this already?

can u please say how to add this permission?

documents = database.list_documents(req.variables.get('DATABASE_ID'), req.variables.get('COLLECTION_ID') , Query.equal('mobileNo', payload['mobileNo']))

check this out https://appwrite.io/docs/keys

if you're still not able to understand, let me know

thanks for the info...completely forgot this concept. Will test now and let u know sir

Getting this error now:- "Invalid queries: Value must a valid array and Value must be a valid string and no longer than 4096 chars"

should i give indexes.read permission also ???

for using that query?

which sdk are you using?

u mean client side?

client side - using latest appwrite package 9.0.0

server side - appwrite cloud based on 1.1.2

python run time - 3.9

python package used appwrite 2.0.0


created this index with index_type as fulltext

for which programming language?

that 3rd argument is supposed to be an array.

dart

u are awsmm sir....

I would also suggest that these types of errors should be caught at compile time itself

thanks again.... both of u for giving ur valuable time to solve my doubt

There's an issue for adding type hints to the python sdk which should help: https://github.com/appwrite/sdk-for-python/issues/43

[SOLVED] (role: applications) missing scope (documents.read)
Recommended threads
- ❗[Help] Function stuck in "waiting" stat...
Hi Appwrite team 👋 I'm trying to contribute to Appwrite and followed the official setup instructions from the CONTRIBUTING.md guide to run the platform locall...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
- deno 2 Cloud random errors
we have big problems with the functions. although we do not change anything in the function, we have the following random behaviour: - no scope permissions erro...
