manazoOriginal post
Rank 3: Container
the error message i'm getting says Invalid document structure: Unknown attribute: "chats", even tho i'm not sending any attribute named "chats". I'm facing this issue while updating a document. the screenshot shows the data i'm trying to send (under dataToPost) to the db, also the error message i'm facing. I do have a collection named "chats", but that do not have any relation with the collection that i'm trying to work with here.
Appwrite: 14.0.1
NextJS: 14.0.4
Summary
Developers are getting "document_invalid_structure" error despite sending valid data. The error pertains to an unknown attribute "chats" even though it is not being sent. The issue occurs during document updating. The versions being used are Appwrite 14.0.1 and NextJS 14.0.4.
Solution: Check the document's structure and ensure there are no unexpected attributes being sent. Double-check the relationship between the collections in use.