
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
- mcp-for-docs not working properly
I'm experiencing issues integrating the MCP server tool with Cursor IDE. The MCP server connection establishes successfully initially but fails after one minute...
- When connecting to VCS (Version Control ...
Hello, when I try to define in my function the root path of a function I get this when I click "Update".
- queries.map is not a function
Query.createdBefore doesnt work ``` tables.updateRows({ databaseId: process.env.APPWRITE_DATABASE_ID, tableId: process.env.APPWRITE_TABLE_ID, ...
