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
- My account is blocked so please check an...
My account is blocked so please unblock my account because all the apps are closed due to which it is causing a lot of problems
- Applying free credits on Github Student ...
So this post is kind of related to my old post where i was charged 15usd by mistake. This happens when you are trying to apply free credits you got from somewh...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...