
Hello. I'm getting error below when trying to create a new document. I don't remember creating attribute "author", but it fits in the context of what I am doing. So it's possible that I added and then removed this attribute. Either way, it shouldn't exist by now, it doesn't show up in console as well. I attached the screenshots of console, error & my code.
TypeScript
Error: Invalid document structure: Missing required attribute "author"
My code:
TypeScript
await databases.createDocument("bible-assistant-db", "jwchat-threads", ID.unique(), {
chatName: message,
messages: [{
role: "USER",
content: [
{
type: "TEXT",
text: message,
},
...images.map((image: any) => {
return {
type: "IMAGE",
media_type: image.media_type,
data: image.data,
};
})
],
}],
isBusy: true
}, [Permission.read(Role.user(user.$id))]);
TL;DR
Developers are receiving an error about a non-existent attribute "author" when trying to create a new document. Although the attribute isn't in the code or console, it may have been added and removed. The error persists.Recommended threads
- My collection is not updating after csv ...
- phantom relationships appear on parent c...
i have this bug were my past deleted collection apears as relationship to my parent collection. when i try to delete that relationship from parent it gives me e...
- Attribute stuck on proccessing
i tried creating a new attribute butits stuck on proccessing,i did a hard refresh,cleared cache everything but still stuck on proccessing,also in my functions w...
