
{ "message": "Invalid document structure: Unknown attribute: 0", "code": 400, "type": "document_invalid_structure", "version": "0.12.83" } Document created, but if im try update document i see this error
TL;DR
Title: Error updating document in database
Developers are encountering an error while trying to update a document in the database. The error message states "Invalid document structure: Unknown attribute: '0'". This error occurs even after successfully creating the document.
One solution that may resolve the issue is to ensure that the data being updated is an object and not an array. Additionally, the developers have requested the code to investigate further.
Can you share the code please?


Good

Can you log the data
variable

Or you can make sure it's an object and not an array
Recommended threads
- Appwrite custom domain verification fail...
So I've left enough time for the records to propagate and I've tried adding in a subdomain for the appwrite endpoint so as not to cause a clash with two CNAME r...
- Error: Invalid `userId` param: Parameter...
- Appwrite error handling
Is this a good way to handle appwrite errors in nextjs server action ??
