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
- Invalid `region` param: Value must be on...
Hi! I'm trying to migrate a small project from the cloud to a self hosted instance to play around but without any success! I cannot initiate a migration witho...
- Migration from cloud to self-hosted fail...
Hi! I'm trying to migrate a small project from the cloud to a self hosted instance to play around but without any success! The migration process fails with the ...
- Feedback and Deployment Challenges with ...
Hello world!, I've been developing a project using FastAPI in Python, and I was considering deploying it through Appwrite Functions. However, I encountered a f...