would you please remove the public access on the collection and try running this again?
[SOLVED] How to get all documents from list_documents?
Votes
0
Replies
24
Participants
Unknown
Messages
25
Moderator
wait now I'm confused
Moderator
my API key says never used but
Moderator
how else would I be connecting?
Moderator
Yeah I'll try
your collection is public
Moderator
okay so I just made it not public
Moderator
so if I understand this correctly, if the collection is public it's subject to the rate limits regardless of API key?
the point is you're not using your api key. something is wrong in your code such that you aren't using the api key
Moderator
the only part of my code is initializing the client
either that or the api key is invalid
Moderator
where I do in fact use the API key
Moderator
it's fine now
Moderator
which means that a public collection doesn't use the API key even if it's present
Moderator
my API key now says it was accessed today, (it didn't before, it said never) and I'm no longer getting rate limited, which means it's a public collection bug
Moderator
this is the only code I use
DB_ID = "twitterai_db"CLIENT = ( Client() .set_endpoint("https://appwrite.zachhandley.com/v1") .set_project("ai_twitter_bot") .set_key( "420cbccdeecbbb858e7e72ffe0f112f9e48d43aba1ea3ae4fb6ffbeee94956a8bdbdbc582df5c_MY_API_KEY_MINUS_SOME_STUFF" ))DATABASES = Databases(CLIENT)
class DBManager: def __init__(self): self.client = CLIENT self.database = DATABASESModerator
is there a way to mass create or mass delete?
concurrently call createDocument or deleteDocument
Moderator
okay so not really, gotcha, either way, thank you, solved my problem ❤️
[SOLVED] How to get all documents from list_documents?
Moderator
also @Steven if you guys want you shold add to the Appwrite bot a ?solved command or something, the Discord.py bot does that and it's useful so you guys don't need to change titles
Moderator
It changes it to [SOLVED] TITLE and turns off replies
@Appwrite bot (mee6) doesn't support that as far as I know
Moderator
Want me to write a quick bot to do it?
that's okay. we'll keep the idea in mind, though