Back

server error 500 when creating documents in database

  • 1
  • Databases
  • Flutter
  • Cloud
Raja
18 Dec, 2023, 16:55

I was creating documents I got 500 error, however the the documents were created, but still got error 500.

It was working fine before, but now this happening

My projectID: 654cd88c56d527c96c08

TL;DR
User is experiencing a server error 500 when creating documents in the database. They suspect that it might be due to nested relationships. They have removed the relations and now it is working. They request for an increase in the depth of nested relations. Support team is investigating the issue and is aware of the problem. No solution provided.
Haimantika
18 Dec, 2023, 18:28

Hi, are you using Cloud?

Raja
18 Dec, 2023, 18:32

yes

Haimantika
18 Dec, 2023, 19:32

There seems to be some issue with Cloud. The team is aware of it and will share more updates in <#1102936099745177700>

D5
18 Dec, 2023, 19:35

@Raja Are you still facing issues?

-N I N J A-
18 Dec, 2023, 19:38

I also faced so many times

D5
18 Dec, 2023, 19:39

Are you still facing it right now?

D5
18 Dec, 2023, 19:39

The issue should have been solved 🤔

-N I N J A-
18 Dec, 2023, 19:40

It is not fixed, sometimes it gives an error like Aborted/Abort and Server Error, and sometimes no any error

D5
18 Dec, 2023, 19:42

Okay, the team is investigating this

Raja
18 Dec, 2023, 19:52

Its solved now, I think the issue is nested relationships, some times it causing problems, I removed relations now its working.

if there is any chance to increase the depth of nested relations, please increase. I'm working on ecommerce app, I really need it.

For now I'm going to add userId as an attribute.

D5
18 Dec, 2023, 19:52

Interesting. Anyways I think it should not happen 🤔

Raja
18 Dec, 2023, 19:54

Please provide valid error messages, I'm seeing server error 500 for so many issues

Drake
18 Dec, 2023, 20:12

so do you see 500 when browsing the console or only when creating a document?

Raja
18 Dec, 2023, 20:20

not console, in code Im seeing 500

Raja
18 Dec, 2023, 20:21

even there are no error in the code, I'm getting server error 500 sometimes

Drake
19 Dec, 2023, 16:27

can we troubleshoot and narrow down to find out what the problem is? it's probably because of some relationship attribute. have you narrowed down which related collection is the problem?

Muniraja
19 Dec, 2023, 21:20

Hey, This is My other account.

I had 4 levels of relations, I think that's what caused the error.

Currently no issue at all. Seems like the appwrite cloud is much faster today.

If I get an error again, even if the code is perfect, I'll post immediately.

Thank You.

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