Back

Database 500 error POST

  • 1
  • Databases
  • Web
dimas
9 Nov, 2023, 08:17

sure, this is the project id: 654bb1fd6437f515f365

TL;DR
User is experiencing a 500 error when trying to patch data in a database. They are considering creating a new thread in the support channel for help. Another user suggests creating a new project to solve the issue. One user shares their code and asks for help. Another user suggests that the error may be caused by creating the project during database issues. The solution is to create a new project and database from the beginning. The user confirms that the previous project does not have any data.
Haimantika
9 Nov, 2023, 08:19

Thanks. Will get back to you soon with updates

D5
9 Nov, 2023, 08:30

Is this a newly created project?

dimas
9 Nov, 2023, 08:35

yes

D5
9 Nov, 2023, 08:36

So the project doesn't has anything, true?

D5
9 Nov, 2023, 08:36

If so, creating a new project should solve the issue

D5
9 Nov, 2023, 08:37

It was probably caused due to creating the project during database issues

Haimantika
9 Nov, 2023, 08:39

Yes. @dimas can you try doing this?

dimas
9 Nov, 2023, 08:49

you mean create from beginning new project ? and then create new database again ?

dimas
9 Nov, 2023, 08:49

you mean create from beginning new project ? and then create new database again ?

Haimantika
9 Nov, 2023, 08:50

Yes. Does your previous project has data?

dimas
9 Nov, 2023, 08:54

no i mean has twice create new project with issue 500 server

  1. error all 500 (solved) https://discord.com/channels/564160730845151244/1171365689722929152
  2. Now when write database (POST)

ok let me try to create once from beginning 🙂

D5
9 Nov, 2023, 08:56

You don't need to create a new project when an outage happens, and also during outage 😅

dimas
9 Nov, 2023, 09:42

not work

dimas
9 Nov, 2023, 09:43
dimas
9 Nov, 2023, 09:44

this the new project id : 654c9e87e173cc44243e

D5
9 Nov, 2023, 09:47

Weird 👀

Haimantika
9 Nov, 2023, 10:04

This must be some other error. 😅

Haimantika
9 Nov, 2023, 10:04

Can you share the code?

dimas
9 Nov, 2023, 11:54

down ?

nebukadnezar
9 Nov, 2023, 12:42

I have the exact same issue. Created the project a few hours ago. Now all pages from auth to storage show server 500 error.

This is the code I'm trying to run:

TypeScript
    Future<List<Document>> getNotesFromCloud = _appwriteService.getNotes();

    getNotesFromCloud.then((result) {
      inspect(result);

      if (result.isNotEmpty) {
        for (Document note in result) {
          TrainingNote trainingNote = TrainingNote(
            id: note.data['id'],
            subject: note.data['subject'],
            date: DateTime.parse(note.data['date']),
            description: note.data['description'],
          );

          //Set date from ISO 8601 notation to custom
          DateFormat('dd MMMM HH:mm').format(trainingNote.date);

          //Add the training note after date is formatted
          _trainingNotes.add(trainingNote);
        }
        return _trainingNotes;
      } else {
        return <TrainingNote>[];
      }
    });```
D5
9 Nov, 2023, 13:10

@nebukadnezar Creating a new project should solve the issue

dimas
10 Nov, 2023, 03:59

@D5 @Haimantika got Error 500 when patch data, please refer the image

dimas
10 Nov, 2023, 04:00
dimas
10 Nov, 2023, 04:01

that issue should i create new thread at the support channel ?

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