#[Solved] Database listRows method call failing in Flutter

17 messages · Page 1 of 1 (latest)

gloomy arch
#

I'm getting an error when trying to use listRows in a flutter app on a database. It seems something in the backend has changed because the production version of the app which has been working fine has suddenly stopped as well.

I have verified that it is in fact the listRows method failing and not the assignment after it (i.e. I didn't set latestVersion to a text parameter). Additionally, the listRows call seems to be failing in every other use across the app as well.

Attached are screenshots of what I believe to be relevant, including the relevant code snippet, screenshot of the database, and console error message. However, I don't believe my code can be the issue because the stable version of the app has stopped working without any modification to the code (which is what led me to look into this in the first place).

Thanks for any help in advance! :)

wary prairie
#

yes, error: type 'String' is not a subtype of type 'int'

radiant moat
#

Woke up today to find all my flutter appwrite project over past 6 months completely broken due to this error

#

I have 3 apps in production. What a nightmare

radiant moat
#

The errors happening because of metadata sent by cloud for a row for sequence as String instead of int

rough pecan
#

Yes, it happening "type 'String' is not a subtype of type 'int'"

#

The sequence attribute is expected to be an integer, but a string is being received.

radiant moat
#

Updating the sdk cache row.dart file fixes it for now.

Updated the parsing method sequence attribute as follows:

clever elk
#

I've got apps on production, so I can't wait to have my app broken for a few days until apple / google approves

gray tangle
#

Hey, I have reported this internally. We are looking into this.

radiant moat
#

@gray tangle @sand helm
Any ETA? I am embarrassed in front of my clients. My application is part of an event which is going on RN and all my clients sytems are down due to this and are unable to use the app. I'm bombarded with calls!

gray tangle
gray tangle
#

We've deployed another fix, can you please confirm if you still have issues?

radiant moat
#

It's working now

wary prairie
#

working🙂

gloomy arch
#

Yep, it's working now! 😃

#

[Solved] Database listRows method call failing in Flutter