Back

Issue opening a particular collection

  • 0
  • Flutter
Meldiron
26 Feb, 2023, 14:44

Hihi. Makes me smile to see 30Β°C on your screenshots while I look outside and it's snowing πŸ˜…

TL;DR
Issue: User is having trouble opening a particular collection and receives an error message stating that the attribute "numbers" must be an array. Solution: The user may have mistakenly declared the "numbers" attribute as an array when it should have been an integer. They should check their code and ensure that the attribute is properly defined. It is suggested to check the "attributes" tab in the collection and delete attributes one by one to identify which one is causing the issue. The support team plans to fix this bug in a future update (1.2.2).
siddesh31
26 Feb, 2023, 14:45

man😭

Meldiron
26 Feb, 2023, 14:45

Amazing! Hmm this is already second bug I see after Appwrite 1.2.1. I will do my best to push for a 1.2.2 with fix to this. Let me ping @Arman about it.

Meldiron
26 Feb, 2023, 14:45

It must be related to some of your attribute you have set up. If you coudl delete them one by one to see which one is causing it, it would help us a lot.

siddesh31
26 Feb, 2023, 14:45

oh

siddesh31
26 Feb, 2023, 14:46

this has to do something with my code?

Meldiron
26 Feb, 2023, 14:46

Nah nah, all inside console. When you look at your collection, there is "attributes" tab. I think one of your attributes is causing this bug.

If you could find out which one, it would allow us to reproduce it easily. And fix it quicker

siddesh31
26 Feb, 2023, 14:47

ok

siddesh31
26 Feb, 2023, 14:47

i will get to back to you

Meldiron
26 Feb, 2023, 14:47

Thankssss πŸ˜‡ Please ping me with @Meldiron when you get any more info about this

siddesh31
26 Feb, 2023, 14:47

sure it self right?

Meldiron
26 Feb, 2023, 14:48

self?

siddesh31
26 Feb, 2023, 14:48

like i should ping you here only right?

siddesh31
26 Feb, 2023, 14:48

here *

Meldiron
26 Feb, 2023, 14:48

Yep.

siddesh31
26 Feb, 2023, 14:52

hi i am back @Meldiron

siddesh31
26 Feb, 2023, 14:52

i made a list of integers as a attribute

siddesh31
26 Feb, 2023, 14:53

but i gave an integer from my code

siddesh31
26 Feb, 2023, 14:53

that was the error

siddesh31
26 Feb, 2023, 14:53

thannkyou for ur time

Meldiron
26 Feb, 2023, 14:54

Solved? Cooool! πŸ”₯

Ill see if I can reproduce it anyway. There should be better error, not just a blank page πŸ˜…

siddesh31
26 Feb, 2023, 14:55

ya man that would be helpfull

Meldiron
26 Feb, 2023, 14:58

Hmm how did you manage to do that?

When I make numbersΒ attribute that is of type integer and array, and then try to send a number there, it says: {"message":"Invalid document structure: Attribute \"numbers\" must be an array","code":400,"type":"document_invalid_structure","version":"dev"

siddesh31
26 Feb, 2023, 15:00

no in my code it was declared integer

siddesh31
26 Feb, 2023, 15:00

but in attribute by mistake i made it array

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