I have a database & collection pair set up with the database ID "Data" and the collection ID "Collection". They are set up with All users granted all access rights to the collection.
Database and collection are created & configured by a backend application (via the .net API). This application is able to create new documents in the collection just fine. However when the Angular-based client attempts to do so, it is met with the exception "AppwriteException: Database not found". This same client can see the documents created by the backend just fine, via a realtime subscription.
The frontend is registered on the (cloud.appwrite.io) dashboard as a web client with hostname set to "localhost" as I am just testing & developing locally for now.
The typescript attempting to create the document in the client is as follows:
async sendMessage (message: string)
{
this.error = null;
try
{
await databases.createDocument (
'Data',
'Collection',
ID.unique (),
{
sender: this.username,
contents: message
}
);
}
catch (error)
{
this.error = error;
}
}
Any idea what could be causing the error? Common pitfalls I should look out for?
Recommended threads
- proccessing problems
A database schema operation is stuck in my Frankfurt project. In the matryq database, the workspaceId attribute of the coaching_activity_entries collection rema...
- User column is processing
I am still encountering the processing tag after creating a column in my database. and its not a network or refresh issue, i have refreshed over and over, shutd...
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...