{ "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
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- trying to figure out how to activate my...
please help
- Bug: TOTP MFA verification always fails ...
*Bug: TOTP MFA verify always returns `user_invalid_token` (Cloud 1.8.1, Frankfurt)** Project ID: `68dd48440003e537d849` SDK: `appwrite@18.2.0` (also tested wit...