Back

[SOLVED] AppwriteException: general_unknown, Server Error (500)

  • 0
  • Flutter
  • Cloud
tuyen3962
9 Dec, 2023, 14:14

When i want to create new document, i face with this problem but i check when creating document is not wrong. Please help me this case!

TL;DR
Title: [SOLVED] AppwriteException: general_unknown, Server Error (500) Solution: The user had a problem with a 500 server error when trying to create a new document with a related collection. They discovered that they had not added the relationship in the console, which was causing the issue. Once they added the relationship, the problem was solved. They also made sure to set user permissions for all the collections in their project.
tuyen3962
9 Dec, 2023, 14:29

when i create new document which have the related collection, how do i add the related collection to my model.

Drake
9 Dec, 2023, 16:01

Cloud or self-hosted?

tuyen3962
9 Dec, 2023, 16:01

Cloud

tuyen3962
9 Dec, 2023, 16:02

I use the same data to create in the server side and it work

tuyen3962
9 Dec, 2023, 16:02

But in flutter app it throw 500 server error

Drake
9 Dec, 2023, 17:28

Probably a permission error. What's your project id?

tuyen3962
9 Dec, 2023, 23:25

6568914e5e96c980d480

tuyen3962
9 Dec, 2023, 23:25

This is my project id

tuyen3962
10 Dec, 2023, 02:45

I already set user permission to all my collection

tuyen3962
10 Dec, 2023, 02:51

But i add one collection as one way relationship for two other collection so i dont know is it the reason?

Drake
10 Dec, 2023, 04:38

would you please share your code?

Drake
10 Dec, 2023, 04:39

i see some problem with a 'reactions' attribute

Drake
10 Dec, 2023, 04:40

or 'comment_d'

tuyen3962
10 Dec, 2023, 04:52

Oke sir

tuyen3962
10 Dec, 2023, 05:41

ak i have check again

tuyen3962
10 Dec, 2023, 05:41

it is my fault

tuyen3962
10 Dec, 2023, 05:42

I create my model but not add the relationship in the console so it not work for me

tuyen3962
10 Dec, 2023, 05:44

my problem has solved.

tuyen3962
10 Dec, 2023, 05:44

Thank you so much

tuyen3962
10 Dec, 2023, 05:45

let me close this issue

Drake
10 Dec, 2023, 07:20

[SOLVED] AppwriteException: general_unknown, Server Error (500)

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