so basically, I need to get a document from appwrite database. as u can see in the picture, there are many documents, with their IDs. the DB ID is env_vars and collection ID is key-value-pairs. I try to access ENVHUB_API_KEY and it gives 404 saying document not found. Why?
my code:
from appwrite.services.databases import Databases
from appwrite.client import Client
client = Client()
key = Databases(client).get_document("env_vars", "key-value-pair", "ENVHUB_API_KEY")
proof that the DB ID and Collection ID is correct:
Are you setting the Appwrite endpoint? Is it the ID of your project?
(client
.set_endpoint('https://cloud.appwrite.io/v1')
.set_project('envhub')
)
Are you setting the ID of your project?***
.set_project("envhub") sets it, so yes
it's node.js?
python
python
Recommended threads
- AppwriteException: CERTIFICATE_VERIFY_F...
getting this error while using Cloud : "Session invalid during cache load, clearing cached data: AppwriteException: , HandshakeException: Handshake error in cl...
- Console not loading - ERR_NAME_NOT_RESOL...
Hi everyone/team, is anyone else experiencing DNS issues accessing the Appwrite Console? I cannot load my project dashboard. My browser console is returning: Fa...
- {"message":"Server Error","code":500,"ty...
Hi, I am using Appwrite Cloud. I had created a new relation for a table. Since it was not letting me delete an appointment, I removed the relation from the mess...