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
- redirect_uri errors on flutter client
Hi all, I'm using the flutter client for my app to do appwrite auth and use the JWTs to send to my backend. When I try to sign in with SSO, I get this: https:/...
- Cloud 500 error
- How does sending email from the Appwrite...
I noticed that the pricing page mentions “Messages – 1000 per month” for the Free plan. Is this different from sending emails? When I try to send an email usin...