Closed Sameerkash closed 2 years ago
Has the source of this bug already been identified, and do we know if creating nested documents via POST has worked in previous builds? I am experiencing the same behavior while hoping to utilize AppWrite DB; I'm running Appwrite 0.8.0 on Ubuntu Server 20.04. I would be happy to look into resolving this issue, but I want to ensure there isn't some key historical detail I'm missing about this feature. Let me know.
Has the source of this bug already been identified, and do we know if creating nested documents via POST has worked in previous builds? I am experiencing the same behavior while hoping to utilize AppWrite DB; I'm running Appwrite 0.8.0 on Ubuntu Server 20.04. I would be happy to look into resolving this issue, but I want to ensure there isn't some key historical detail I'm missing about this feature. Let me know.
Hey, this issue got a bit lost 😕
iirc, I had trouble re-creating the bug when I took a look at it. Do you mind sharing the JSON of your collections? @jfeversole
@TorstenDittmann That's no problem! I reviewed more issues here in this tracker related to nested documents and have identified that it's very unlikely that the bug I faced yesterday is an actual Appwrite bug rather than one I introduced with my document structure. I saw this as "Open" and "Assigned" and incorrectly assumed this is a known problem with the software rather than a one-off bug report. You know what they say about assuming!
I will be going back to review the documents I was trying to create while reviewing the related issues in this tracker. If I'm still having problems by that point and have reason to believe it's an AppWrite problem and not a "me" problem, I'll be sure to post plenty of debugging info.
@jfeversole Did you find out what the problem was? I'm struggling with the same issue creating an embedded document. I can create the embedded document via the UI but it's not linked to its parent document.
@nico87 The issues I experienced here led to me dropping AppWrite from my project, so unfortunately not. Embedded documents were too important for what I was creating and even the simplest of JSON structure would fail to work here in my testing.
Thanks @jfeversole . In the end I solved the issues I was facing. Basically, I didn't add the $collection and $permissions keys to the documents I was saving. After that, the nested documents are saved correctly.
Since we removed nested documents this issue is not relevant anymore 👍🏻
🐛 Bug Report
(A clear and concise description of what the bug is)
Trying to create a nested document throws an internal server error, the same request with
To Reproduce
Expected behavior
Successful document creation
Actual Behavior
500 Internal Server error
logs
Your Environment