Back

getting "document_invalid_structure" error even when i'm sending valid data

  • 0
  • Databases
  • Web
  • Cloud
manazo
21 May, 2024, 07:19

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

TL;DR
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.
manazo
21 May, 2024, 07:49

i tried updating the values from the console directly. and it throws the same error there as well

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