
I've had this error in the past, last week perhaps. But by the time I got responses, the I could not recreate the issue since I had just reverted back to a backup. But it's back now. I keep getting error "Database not Found" using code in a function that worked a few days ago.
Steps to reproduce:
- Setup self-signed node-appwrite@13.0.0 sdk.Client() with ENV vars.
- Ensure API key has access to DB, full R+W permissions
- Try to access DB / Collection / Document from project
I have attached the error messages and the setup I have without revealing too much. I have double crosschecked ENV vars (Key, endpoint). I have double checked permissions. Just like last time, If I however try to do the same using REST API, it succeeds.
I may be missing something small here, is this a known issue in v1.5.7

Womp. These attachments are missing the extension in the name so they don't open right on my phone 😕 can you put the extensions back?

Oh my bad, here you go:

and if you wondering if db exists...

Can you try logging JSON.stringify(client.config)
right before the list documents?

The error in your docker logs is odd because it's for the get document call, not list documents 🧐

And the error is document can't be found. Not database not found

Yeah it's weird, because the function call gives DB not found but I am calling listDocuments

The function error is database not found as expected. Something else is calling get document 🧐

Could be from the other projects running? This one specifically is trying to list all documents.
I also managed to print out the config just:
----------------------------------------------------------------------------
Unsupported logs detected. Use context.log() or context.error() for logging.
----------------------------------------------------------------------------
{"endpoint":"https://xxx/v1/","project":"xxx","key":"xxxx","jwt":"","locale":"","session":"","forwardeduseragent":""}
----------------------------------------------------------------------------
redacted url and keys

client.config seems to have both url, and key correctly

Try changing the endpoint to not have that trailing slash

Hopefully you're hitting the right server
Recommended threads
- My collection is not updating after csv ...
- Properly contained appwrite main app can...
Hello! We tried to reinstall our main self-hosted appwrite with a new method but the main app 2 mins after launch throw this error: ```2025/06/22 16:16:14 s...
- How do I format an array in a CSV file t...
I want to import a CSV file to create a document on it on the AppWrite website. I have an attribute "name" of type String and "ingredients" which is of type St...
