
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
- SDK mismatch
Hi there, The following warning is currently appearing in my console: ``` Warning: The current SDK is built for Appwrite 1.8.0. However, the current Appwrite...
- Can't read files from s3 storage directl...
I try to download the files stored by appwrite directly from my S3 provider. The bucket is not encrypted and no gzip but the files seem not to be stored there i...
- Appwrite messaging api error
```=== Push Notification Function Started === Endpoint: https://fra.cloud.appwrite.io/v1 Project: 6899062700398ffeae4f Database: threed-dating-db Notification f...
