Back

[CLOSED] (Bugged) Query.select = 500 general unknown error

  • 1
  • Databases
  • Flutter
D5
13 Aug, 2023, 11:42

I get in sentry this error: Can not select attributes: $createdAt

TL;DR
Title: [CLOSED] Query.select = 500 general unknown error Discussion: - The user encountered a bug with the Query.select function, which resulted in a general unknown error (Error 500). - The user found a GitHub issue related to the bug and discovered that it will be fixed in the next version of Appwrite. - The user asked if creating an index for the 'createdAt' attribute might help, but it was unclear if an index was necessary. - Other users confirmed experiencing the same error with different attributes and received a 'Numeric value out of range' error as well. - The user also shared a related error
D5
13 Aug, 2023, 11:43

And this one too: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'value' at row 1

D5
13 Aug, 2023, 11:49

Tied with other attributes and same error

XaFigg
13 Aug, 2023, 12:28

Same on my side, error 500.

XaFigg
13 Aug, 2023, 12:29

(With appwrite 1.3.8 self-hosted)

safwan
13 Aug, 2023, 12:36

did you create an index for createdAt πŸ˜…

D5
13 Aug, 2023, 12:48

Is it needed an index for that? πŸ‘€

safwan
13 Aug, 2023, 12:48

maybe, I'm not sure lol

safwan
13 Aug, 2023, 12:48

give it a try i guess

D5
13 Aug, 2023, 12:48

Yes, will try

Binyamin
13 Aug, 2023, 15:24

Take a look here https://github.com/appwrite/appwrite/issues/5376 It seems like it will be added in the next version https://github.com/utopia-php/database/pull/299/files

D5
13 Aug, 2023, 15:49

Not using relationships

Binyamin
13 Aug, 2023, 15:51

Yes I think that part is not in relationships only

D5
13 Aug, 2023, 15:52

I'm trying to perform this in a standard document and throws the mentioned error

Binyamin
13 Aug, 2023, 15:58

You can see here https://github.com/utopia-php/database/pull/299/files that the $createdAt was always added Till the change on the right in which it checks each field

Binyamin
13 Aug, 2023, 15:58

Giving you the ability to select them

D5
13 Aug, 2023, 16:32

Then why I get such error?

D5
13 Aug, 2023, 16:33

Oh, so you mean it's bugged for now until this pr is merged (new Appwrite version released)?

Binyamin
13 Aug, 2023, 16:34

Yep

D5
13 Aug, 2023, 16:36

https://github.com/appwrite/appwrite/milestone/16

56% completed... I'm anxious to see that 100%

Edit: now 58, some good progress Edit 2: 70% this is fassst

D5
13 Aug, 2023, 16:38

[BUGGED] Query.select = 500 general unknown error

D5
13 Aug, 2023, 16:39

Uh, maybe closed is better or what?

Binyamin
13 Aug, 2023, 16:39

I went over the code again,

D5
13 Aug, 2023, 16:40

[CLOSED] (Bugged) Query.select = 500 general unknown error

D5
13 Aug, 2023, 16:40

I think that's better

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