Closed amitkhairnar44 closed 2 years ago
thank you for reporting it, will notify the server-side team about it
@amitkhairnar44 server-side team reported that they fixed this issue today, please check on your side
@TatankaConCube I'll check and let you know
@TatankaConCube The issue is fixed 👍🏼
@TatankaConCube Now I'm getting the same issue while fetching dialogs
The getDialogs()
api is having same json parsing issue
type 'int' is not a subtype of type 'String?'
#0 new CubeDialog.fromJson (package:connectycube_sdk/src/chat/models/cube_dialog.dart:47:5)
#1 GetDialogsQuery.processResult.<anonymous closure> (package:connectycube_sdk/src/chat/query/dialogs_query.dart:38:43)
#2 MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31)
#3 ListIterator.moveNext (dart:_internal/iterable.dart:342:26)
#4 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:188:27)
#5 new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#6 new List.of (dart:core-patch/array_patch.dart:50:28)
#7 ListIterable.toList (dart:_internal/iterable.dart:213:44)
#8 new PagedResult (package:connectycube_sdk/src/core/rest/response/paged_result.dart:25:40)
#9 GetDialogsQuery.processResult (package:connectycube_sdk/src/chat/query/dialogs_query.dart:37:12)
#10 Query.perform.<anonymous closure> (package:connectycube_sdk/src/core/rest/query/query.dart:61:28)
#11 _rootRunUnary (dart:async/zone.dart:1436:47)
#12 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
sorry for that, the server-side team reverted some commits on the backend including this fix, they promise to back it as fast as possible
should have been fixed, please check one more time
@TatankaConCube I'll check and inform you
@TatankaConCube The issue seems to be fixed 👍🏼
Platform (use [x]) [x] Android [x] iOS [ ] macOS [ ] Windows [ ] Web
Describe the bug: There is some json parsing issue while creating a
CubeDialog
with recipients which are created usingsignInUsingFirebase
.The
createDialog
function is failing due to parsing issue of thename
object. Current code expects it to be String but the api is returning an int.I think the issue occurs only if the
recipients
are created usingsignInUsingFirebase
.Steps to Reproduce:
signInUsingFirebase
Firebase Auth (Mobile OTP based)Logs:
Data from api request:
Error:
Actual result: Unable to parse the json because the value of
name
is an int5180981
Expected behavior: It should be able to parse the user data by detecting the value.You can check if the value of
name
isString
or not and then parse.