you need to create an API key, and give it the documents.read permission. Have you done this already?
[SOLVED] (role: applications) missing scope (documents.read)
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 1: Thread
can u please say how to add this permission?
Rank 1: Thread
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
Rank 1: Thread
thanks for the info...completely forgot this concept. Will test now and let u know sir
Rank 1: Thread
Getting this error now:-
"Invalid queries: Value must a valid array and Value must be a valid string and no longer than 4096 chars"
Rank 1: Thread
should i give indexes.read permission also ???
Rank 1: Thread
for using that query?
which sdk are you using?
Rank 1: Thread
u mean client side?
Rank 1: Thread
client side - using latest appwrite package 9.0.0
Rank 1: Thread
server side - appwrite cloud based on 1.1.2
Rank 1: Thread
python run time - 3.9
Rank 1: Thread
python package used appwrite 2.0.0
Rank 1: Thread
Rank 1: Thread
created this index with index_type as fulltext
for which programming language?
Admin
that 3rd argument is supposed to be an array.
Rank 1: Thread
dart
Rank 1: Thread
u are awsmm sir....
Rank 1: Thread
I would also suggest that these types of errors should be caught at compile time itself
Rank 1: Thread
thanks again.... both of u for giving ur valuable time to solve my doubt
Admin
There's an issue for adding type hints to the python sdk which should help: https://github.com/appwrite/sdk-for-python/issues/43
Admin
[SOLVED] (role: applications) missing scope (documents.read)