Back

[SOLVED] Weird error when updating document

  • 0
  • Databases
  • Web
Axentioi
20 Jul, 2023, 14:55

I keep getting this in the appwrite self hosted platform, when I try to edit anything within the document, it spits the error:

Invalid document structure: Missing required attribute "createdAt".

Which is really weird, got any idea why that happens??

TL;DR
The user was getting a "Invalid document structure: Missing required attribute 'createdAt'" error when trying to update a document. The issue was caused by a relationship issue with the users and not having the 'createdAt' attribute. The solution was to fix the relationship issue and add the 'createdAt' attribute.
Binyamin
20 Jul, 2023, 15:04

This could happened if you've recently upgraded the server without running migration

Binyamin
20 Jul, 2023, 15:04

Could this be your casex

Axentioi
21 Jul, 2023, 12:52

fixed, relationship issue with users, didn't have createdAt

Drake
22 Jul, 2023, 20:55

[SOLVED] Weird error when updating document

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