hello there... I think there's a bug in Appwrite. I created a collection named glasses with several attributes, including one called thumbnailUrl. Today, I decided to rename this attribute to thumbnail. However, Appwrite is now throwing an error. Here's what happened and the error I'm receiving:
TypeScript
[AppwriteException: Invalid document structure: Missing required attribute "thumbnailUrl"] {
name: 'AppwriteException',
code: 400,
type: 'document_invalid_structure',
response: {
message: 'Invalid document structure: Missing required attribute "thumbnailUrl"',
code: 400,
type: 'document_invalid_structure',
version: '1.6.1'
}
}
My glasses collection is empty.
TL;DR
Developers renamed the 'thumbnailUrl' attribute in an Appwrite collection to 'thumbnail' and encountered an error, even though the collection was empty. The error indicated a missing required attribute 'thumbnailUrl'.
**Solution:** Ensure to update the attribute name in all relevant locations within the Appwrite collection settings to match the new name 'thumbnail'.Recommended threads
- How to display images from storage
I tried the link above, but it returns the error “`Please upgrade to a higher plan.`” I don’t need Transformations at the moment, I just want to display the ima...
- Cant sign up for appwrite cloud. Never s...
Cant sign up for appwrite cloud. Never sends me an email verification
- The file size is either not valid or exc...
Hello, I am receiving the following error when I am trying to deploy a function from my local. ``` > appwrite push functions --function-id xxxxxxxxx ℹ Info: Va...