Problem
The code throws an error during the execution, although the users being added to the group. How can I prevent this error?
`Exception has occurred.
ThingsboardError (ThingsboardError: message: [type 'String' is not a subtype of type 'Map<String, dynamic>?' in type cast], errorCode: 2, status: null
Hi,
Situation I tried to change the user group of new created user from all to customer administators. Therefore I used the following code snippet:
Problem The code throws an error during the execution, although the users being added to the group. How can I prevent this error?
`Exception has occurred. ThingsboardError (ThingsboardError: message: [type 'String' is not a subtype of type 'Map<String, dynamic>?' in type cast], errorCode: 2, status: null
0 toThingsboardError (package:thingsboard_pe_client/src/error/_thingsboard_error_handler_io.dart:86:18)
1 ThingsboardClient.post (package:thingsboard_pe_client/src/thingsboard_client_base.dart:227:13)