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
- Unable to connect the git repo with appw...
I am trying to connect my existing repo with the appwrite functions. I have 2 functions in the same repo, and i was able to execute those through cli and its vi...
- Hey everyone! I'm trying to self-host th...
Hey everyone! I'm trying to self-host the latest Appwrite version (1.8.1) on Coolify. Which docker-compose.yml file should I use from their repo? Can someone he...
- Weird Query Error
In next js I am getting this error in the image ```js queries: [ Query.equal('title', TitleId), Query.limit(10) ] ``` am I doing something...