Back

doesn't get the attribute even when i delete and remake it

  • 2
  • Databases
tonymelony
2 Apr, 2024, 18:54

so that problem is solved for now

TL;DR
Issue with deleting and recreating attributes in appwrite database causing 'Unknown attribute' error. Slow processing times experienced, with 'readed' attribute causing trouble. Deleting attribute stuck as 'deleting' status for a long time. Solution: Respect the deleting process and be patient, as it may take time to be completed.
tonymelony
2 Apr, 2024, 18:54

only the deleting take a long time

D5
2 Apr, 2024, 18:56

If this is from messaging API, it's not available in cloud yet

D5
2 Apr, 2024, 18:57

Also, if the deleting attribute is still stuck after some hours, tell me and send your project ID so the team takes a look into it

tonymelony
2 Apr, 2024, 18:58

ow no its not from an api

tonymelony
2 Apr, 2024, 18:59

Now i created another attribute and its still processing. The deleting attribute is now deleted

tonymelony
2 Apr, 2024, 18:59

but the processing is stuck now

tonymelony
2 Apr, 2024, 18:59

:sad:

D5
2 Apr, 2024, 18:59

Hmmm weird. Seems a database is a bit busy so the attribute creation is slow...

tonymelony
2 Apr, 2024, 18:59

yeah i guess so

D5
2 Apr, 2024, 19:00

Does refreshing the page works?

D5
2 Apr, 2024, 19:00

Or it's still processing even after that?

tonymelony
2 Apr, 2024, 19:00

Nop also not if i re login

tonymelony
2 Apr, 2024, 19:00
tonymelony
2 Apr, 2024, 19:01

i can look if this one is already set as attribute, but i think not

tonymelony
2 Apr, 2024, 19:03

nop now it says Invalid document structure: Unknown attribute: "readed"

tonymelony
2 Apr, 2024, 19:03

65a321d6b97507a5464a

this is my project ID

tonymelony
2 Apr, 2024, 19:06

now it have no processing , but stil the error: Invalid document structure: Unknown attribute: "readed"

tonymelony
2 Apr, 2024, 19:06

it seems its really slow

tonymelony
2 Apr, 2024, 19:10
TypeScript
export async function createNotification(
  type: string,
  user: string,
  message: string,
  from: string,
  readed: boolean,
) {
  try {
    const createNotification = await databases.createDocument(
      appwriteConfig.databaseId,
      appwriteConfig.NotificationCollection,
      ID.unique(),
      {
        type: type,
        user: user,
        message: message,
        from: from,
        readed: readed
      }
    )

    if(!createNotification) throw Error;

    return createNotification;
  } catch (error) {
    console.log(error)
  }

}

This is the api part

tonymelony
2 Apr, 2024, 19:15

i think i give up for today.. Still not working lol

vika
2 Apr, 2024, 19:23

I am experiencing a similar issue. AppwriteException: Invalid document structure: Unknown attribute: on a string array. Both from my app and in the cloud database dashboard. I get the error whether I add array of values or try to create the item with empty array. Also when trying to delete an array attribute added today it stays stuck on 'deleting' status.

tonymelony
2 Apr, 2024, 19:25

I think there is some bug/error on the appwrite. So i leave it for now. Hope it works tommorow again

tonymelony
2 Apr, 2024, 19:26

Goodnight peeps and hope someone can fix it soon

tonymelony
2 Apr, 2024, 19:26

:StitchSleep:

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