Back

Getting issue in using Appwrite Database

  • 0
  • Web
Anshul Soni
7 Sep, 2024, 11:11

https://github.com/anshulsoni2010/share-note

So, the purpose of this application is to share the text notes that are editable by the creator and can be shared with everyone. But, I don't why it's not pushing the updates on the database.

Please help me

TL;DR
Developers are having issues using Appwrite Database for their sharing text notes application. They are unable to push updates on the database. A possible solution is to log the error messages in a `try/catch` block to identify any issues with the `createDocument` or `updateDocument` functions.
darShan
7 Sep, 2024, 11:11

whats the exact error?

Anshul Soni
7 Sep, 2024, 11:13

sharenote-as.vercel.app

Anshul Soni
7 Sep, 2024, 11:14

this is the live hosted link

Anshul Soni
7 Sep, 2024, 11:14

okay so

Anshul Soni
7 Sep, 2024, 11:14

when user will click to share publish it then it should send the content to the database but it's not sending it

darShan
7 Sep, 2024, 11:15

there must be an exception thrown if something goes wrong. please provide the error message.

Anshul Soni
7 Sep, 2024, 11:16

can you run it in your local, if you don't have any problem

Anshul Soni
7 Sep, 2024, 11:23

@darShan

darShan
7 Sep, 2024, 11:25

I am assuming your createDocument or updateDocument would be inside a try/catch block, log the error in catch block like -

TypeScript
try {
  // update or create calls
} catch (error) {
  console.log(error.message);
}

that should print the error if something's not right.

Anshul Soni
7 Sep, 2024, 11:47

sure gonna add it

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more