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
- Realtime: Email Verification Not work
There are some issues with real-time updates. For email verification, updates triggered by the console will be checked, but real-time updates are not triggered ...
- preview domain 500 internal server error
Appwrite 1.8.1 The main domain is accessible, but the preview domain is inaccessible. Accessing the preview domain displays an Internal Server Error.
- [BUG] The cloud cannot be migrated to se...
The cloud cannot be migrated to self-hosting. The content of this post is exactly the same as [issue 11068](https://github.com/appwrite/appwrite/issues/11068) ...