Skip to content
Back

dart appwrite 16.2.0 throws errors

  • 0
  • 3
  • Self Hosted
whataboutno13
3 Nov, 2025, 11:43

Hi there, I just updated to 1.7.4 and also wanted to update the dart appwrite sdk to fit the appwrite version I am using now. So I updated to 16.2.0 and get the following error.

TypeScript
type 'Null' is not a subtype of type 'int'
#0 new Document.fromMap (package:dart_appwrite/src/models/document.dart:42)
#1 Databases.updateDocument (package:dart_appwrite/services/databases.dart:1353)
<asynchronous suspension>
#2 main (package:meili_sync/main.dart:124)
<asynchronous suspension>
#3 Future.any.onValue (dart:async/future.dart:615)
<asynchronous suspension>

Is there a fix without updating to 1.8?

TL;DR
Appwrite version 16.2.0 is throwing errors, but version 16.1.0 should work with 1.7.4. Make sure to clean dependencies and pin to 16.1.0. Pinning to 16.1.0 solves the issue. Also, bulk operations are still experimental in 16.1.0 despite documentation not indicating it.
3 Nov, 2025, 12:24

16.1.0 should work okay with 1.7.4

3 Nov, 2025, 13:47

So whats the 1.6.2 version for then?

3 Nov, 2025, 15:25

<@452316113016193024> I get the same error with 16.1.0

3 Nov, 2025, 23:54

it should work. make sure you've cleaned dependencies and are pinning to 16.1.0

5 Nov, 2025, 14:20

Thank you! Pinning the version to 16.1.0 actually worked. Another question regarding the bulk operations: In 16.1.0 it says that bulk operations are still experimental, but in the docs theres no indication for that. Are bulk operations experimental?

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