Skip to content

🐛 Bug Report: type 'String' is not a subtype of type 'int' (Row field $sequence: map['\$sequence'],) #1171

@AndriiChemer

Description

@AndriiChemer

👟 Reproduction steps

final response = await tablesDB.listRows()

👍 Expected behavior

Row model field is int value (final int $sequence;) but server return String value.

👎 Actual Behavior

I/flutter (26819): [Error] type 'String' is not a subtype of type 'int'
I/flutter (26819): #0 new Row.fromMap (package:appwrite/src/models/row.dart:42:21)
I/flutter (26819): #1 new RowList.fromMap. (package:appwrite/src/models/row_list.dart:16:55)
I/flutter (26819): #2 MappedListIterable.elementAt (dart:_internal/iterable.dart:442:31)
I/flutter (26819): #3 ListIterator.moveNext (dart:_internal/iterable.dart:371:26)
I/flutter (26819): #4 new List.from (dart:core-patch/array_patch.dart:30:17)
I/flutter (26819): #5 new RowList.fromMap (package:appwrite/src/models/row_list.dart:16:13)
I/flutter (26819): #6 TablesDB.listRows (package:appwrite/services/tables_db.dart:29:27)
I/flutter (26819):
I/flutter (26819): #7 UserRemoteDataSourceImpl.getCurrentUser (package:ai_relationship_app/data/user/user_remote_data_source.dart:30:22)
I/flutter (26819):
I/flutter (26819): #8 UserRepositoryImpl.loadCurrentUser (package:ai_relationship_app/data/user/user_repository_impl.dart:26:21)
I/flutter (26819):
I/flutter (26819): #9 SplashPageCubit.init (package:ai_relationship_app/presentation/page/splash/cubit/splash_page_cubit.dart:24:7)
I/flutter (26819):

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions