I'm trying to update the data in "imageUrls" attribute in existing document on a collection, I'm getting this AppwriteException on flutter
TypeScript
Error:
AppwriteException: document_invalid_structure, Invalid document structure: Unknown attribute: "65afa152a03167d30e48" (400)
TypeScript
Details:
Project ID: 65af9f263941121c4d36
Collection ID: 65afa2106514f0c73413
Function that triggers update document
TypeScript
Future<models.Document> updateProductVariation(
Map map, String documentId) async {
final response = await databases!.updateDocument(
databaseId: AppWriteConstants.dbId,
collectionId: AppWriteConstants.productsVariationsCollectionId,
documentId: documentId,
data: {
"imageUrls": map["imageUrls"],
},
);
return response;
}
I didn't change anything on code and cloud, it was working fine, now it's not working.
TL;DR
Developers are encountering an AppwriteException indicating an invalid document structure when attempting to update the data in the "imageUrls" attribute of an existing document. The error specifies an unknown attribute. Verify code and cloud configurations for any recent changes as it was previously functioning.This is the collection I'm trying to update which I add as image
Recommended threads
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.