
Hello I upgraded my instance from 1.6.2 to latest 1.7.4, doing migration. All seems to work fine but when I use the latest version of the appwrite plugin on my Flutter app (17.1.0) and trying to list documents I got "Unhandled Exception: type 'Null' is not a subtype of type 'int'".
I debugged and found that my instance do not return the field $sequence
which is required in the appwrite library:
factory Document.fromMap(Map<String, dynamic> map) {
return Document(
$id: map['\$id'].toString(),
$sequence: map['\$sequence'],
$collectionId: map['\$collectionId'].toString(),
$databaseId: map['\$databaseId'].toString(),
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
$permissions: List.from(map['\$permissions'] ?? []),
data: map,
);
}
How to fix that?
Recommended threads
- why the createOAuth2Token method does no...
I need it to get secret and key, how to get in flutter code?
- google oauth issues on android
i've set up my appwrite using documentation guidelines. google oauth works just fine on ios, but on android it won't redirect to the app after selecting an ema...
- Login to appwrite CLI
Hi, appwrite login in cli seems not work for me on localhost when I tried `appwrite login --endpoint http://localhost --verbose` I got an error (file attached)....
