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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...