Functions on 1.6.0 return wrong datatype from the appwrite sdk
- 0
 - Self Hosted
 - Flutter
 - Functions
 - Auth
 
I use the dart-3.3 runtime for my functions and the dart_appwrite (v12.1.0) package for some user changes. So when I for example use _users.create('foo@foo.com') I get the exception that String is not a subtype of type Map<String,dynamic> where the sdk trys to use User.fromMap(req.data)... it worked in 1.5.11 so is there a migration error or do I need to change some settings?
code
   var user = await users.create(
        userId: userId,
        email: payload['email'],
        name: payload['name'],
      );
error
type 'String' is not a subtype of type 'Map<String, dynamic>'
#0      Users.create (package:dart_appwrite/services/users.dart:55)
<asynchronous suspension>
Recommended threads
- appwrite auth problem regarding the sess...
Hi, I have problem with auth. When I try to login/signup using OTP, at the end session.secret is empty, i have searched online and in the docs but i cannot find...
 - dart appwrite 16.2.0 throws errors
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 th...
 - Server error on multiple requests
Hi there, I've updated from 1.5.7 to 1.7.4. I am using meilisearch for indexing and have therefore a dart script which syncs the appwrite data to meilisearch in...