FreezmanOriginal post
Rank 1: Thread
Hey! I just migrated to the new TablesDB system, and there seems to be a problem with the lib. When requesting a row, I get
Dart
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: type 'String' is not a subtype of type 'int'#0 new Row.fromMap (package:appwrite/src/models/row.dart:42:21)row.dart:42#1 TablesDB.getRow (package:appwrite/services/tables_db.dart:90:23)tables_db.dart:9This can get fixed by temporary editing the row.dart file and wrapping the $sequence argument with int.parse, but it suggests that the API doesn't send the right type in the json.
Summary
Problem: Error stating 'type String is not a subtype of type int' in Flutter Appwrite after migrating to TablesDB.
Solution: Temporarily edit the row.dart file and wrap the $sequence argument with int.parse to fix the issue, suggesting the API sends incorrect JSON data types.