Skip to content
Back

Cant upadate any document

  • 0
  • Databases
  • Flutter
  • Cloud
alex2341355
27 Sep, 2023, 16:40

project name: iskra

TL;DR
Title: Issue with updating documents; encountering a server error Messages: Can't provide a screenshot, but the attribute list looks fine. No error message, daily maintenance occurs for an hour. Attribute deletion process is taking a long time. Attribute problems are frequent; unable to add or delete attributes. Panel seems fine now. Experienced problems with deleting an attribute today. Code is throwing a 'general_unknown' AppwriteException, Server Error (500). Project name: iskra. Solution: There is no specific solution mentioned in the thread. However, troubleshooting steps could include verifying the code for any errors, checking server status, and contacting a
Drake
27 Sep, 2023, 16:42

please include the error here...and is that the project ID or name?

alex2341355
27 Sep, 2023, 16:42

it is id

alex2341355
27 Sep, 2023, 16:42

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: AppwriteException: general_unknown, Server Error (500) #0 ClientMixin.prepareResponse (package:appwrite/src/client_mixin.dart:73:9) #1 ClientIO.call (package:appwrite/src/client_io.dart:373:14) <asynchronous suspension> #2 Databases.updateDocument (package:appwrite/services/databases.dart:123:17) <asynchronous suspension> flutter: AppwriteException: general_unknown, Server Error (500)

Drake
27 Sep, 2023, 16:45

and what's your code that is throwing this exception?

Drake
27 Sep, 2023, 16:46

FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.

alex2341355
27 Sep, 2023, 16:46
TypeScript
    try {
       AppWrite().db?.updateDocument(
                collectionId: 'users',
                data: {'about': newText},
                databaseId: 'iskra',
                documentId: SaveService().prefs.getString('userId')!,
              );
    } on AppwriteException catch (e) {
      print(e);
    }
  }
Drake
27 Sep, 2023, 16:48

did you create the userPhotos attribute recently? is it still processing?

alex2341355
27 Sep, 2023, 16:50

Yes. Today there were problems with deleting an attribute

Drake
27 Sep, 2023, 16:50

what problems? What's the state of your attributes now?

alex2341355
27 Sep, 2023, 16:51

After deleting an attribute, the deletion status hung for a long time

alex2341355
27 Sep, 2023, 16:51

now i do not see problrms in panel

alex2341355
27 Sep, 2023, 16:53

Attribute problems happen frequently. can't add or delete

alex2341355
27 Sep, 2023, 16:53

every day i gues

Drake
27 Sep, 2023, 16:54

so it was deleting for a while, but now the attribute is gone? can you share a screenshot of your attributes list?

Drake
27 Sep, 2023, 16:55

maintenance happens every day at the same time for about an hour. if it says processing or deleting, you'll just have to wait.

alex2341355
27 Sep, 2023, 16:59

list Attribute is long. cant get screenshot. But i can see that is good. no error status

alex2341355
27 Sep, 2023, 17:07

so?

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