When I try to call logout via await AmityCoreClient.logout();
it crashes the app in 0.57.0 version:
Hello @rafaelplantard, we have escalated this issue to our team for further investigation and will keep you updated on any developments.
Hello @rafaelplantard, we have implemented a potential fix in the latest version, 0.57.1. Please update and let us know if you are still experiencing the issue.
Apparently this error isn’t happening in this new version, however there’s a new exception that is being raised when I try to list paging data for following, it wasn’t happening in 0.56.0, so I’m downgrading again to it.
Hello @rafaelplantard , could you please help share the new exception you experience as well?
When I try to get a following list and it’s empty:
final followers = await userRepository.relationship().getFollowers(userId).getPagingData();
it’s giving this error:
#0 ListBase.reduce (dart:collection/list.dart:187:22)
#1 FollowRepoImpl.getFollower (package:amity_sdk/src/data/repo_impl/follow_repo_impl.dart:208:16)
<asynchronous suspension>
#2 GetUserFollowersUsecase.get (package:amity_sdk/src/domain/usecase/relationship/get_user_followers_usecase.dart:24:25)
<asynchronous suspension>
#3 AmityUserFollowersQueryBuilder.getPagingData (package:amity_sdk/src/public/query_builder/relationship/amity_user_followers_query_builder.dart:33:18)
A similar error is occurring in the version 0.5.6 when I try to get a empty list of comments, it’s failing in a inner reduce, I took a look and probably it’s in a if that checks if it’s first page.
Hello @rafaelplantard, could you also confirm which version you downgraded to?
Downgraded version: 0.56.0
@rafaelplantard Noted, let me pass this to our team, and I’ll get back to you.
Hello @rafaelplantard, please update to this version: 0.57.3 and try again.