Open richanshah opened 10 months ago
@tatanka987 what is the reason behind this error.
right now i am passing static id from user list which i already have and initiating chat.
{"items":[{"user":{"_id":"64dcd5f3558c7f00184ab40a","id":10023181,"created_at":"2023-08-16T13:58:11Z","updated_at":"2023-08-16T13:58:11Z","login":"Shweta}","last_request_at":null,"timezone":null,"email":null,"full_name":null,"phone":null,"website":null,"twitter_id":null,"external_user_id":null,"facebook_id":null,"custom_data":null,"user_tags":null,"avatar":null,"external_id":null,"is_guest":null}},{"user":{"_id":"64dcc0d25eb5be0018d1816f","id":10012726,"created_at":"2023-08-16T12:28:02Z","updated_at":"2023-08-16T12:28:02Z","login":"richaa","full_name":"richaaaa","last_request_at":null,"timezone":null,"email":null,"phone":null,"website":null,"twitter_id":null,"external_user_id":null,"facebook_id":null,"custom_data":null,"user_tags":null,"avatar":null,"external_id":null,"is_guest":null}},{"user":{"_id":"64ddb739558c7f00184be9ad","id":10169154,"created_at":"2023-08-17T05:59:21Z","updated_at":"2023-08-17T10:40:55Z","last_request_at":"2023-08-17T10:40:55Z","login":"sneha","email":"sneha@gmail.com","full_name":"
also when i am sending message to opponent i am getting this message in log
Check you set participant and login to the chat
I/flutter (28267): {"errors":{"base":["Forbidden. Need user."]}}
means that if you try to request dialogs using an empty session (without a user), you should call signIn
before, or create the session with the user before calling this API.
I/flutter (28267): {"type":3,"occupants_ids":[10023181]}
if you need to get all private dialogs for the current user you shouldn't set the current user id to the request, the server will return only user-related dialogs, and your user will not receive dialogs where it is not a member, please see our documentation
Check you set participant and login to the chat
means that your CubeDialog
model should contain the occupantsIds
with the actual opponents list and the user should login to the chat before using the chat functionality
Check you set participant and login to the chat
yes , now i worked on it and handled lifecycle state so its working. thanks for such a good help from ur side
15:03:56.271 com.bv.mainCourt I CB-SDK: : ========================================================= 15:03:56.271 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: BB6A7DBBE3803E241269451ED4F91E358E42} 15:03:56.984 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:56.984 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:56.984 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:56.984 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:56.984 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:56.984 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:56.984 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:56.984 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:56.985 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:56.985 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:56.991 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:56.991 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:56.991 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:56.992 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:56.992 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:56.992 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:56.992 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:56.992 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:56.992 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:56.993 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:57.776 I CB-SDK: : * 15:03:57.779 I CB-SDK: PushNotificationsManager: [init] 15:03:57.781 I CB-SDK: : loginToCubeChat user {full_name: Android user, address_book_name: null, email: s@gmail.com, login: Android, phone: 3011111111, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 123456, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1692955993141409/1692955993141409.jpg, guest: null, timezone: null, tag_list: null, id: 10483824, created_at: null, updated_at: null} 15:03:57.781 I CB-SDK: CubeChatConnection: [login] userId: 10483824, resourceId: null 15:03:57.784 I CB-SDK: CubeChatConnection: Chat connection SocketOpening 15:03:57.794 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:57.794 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:57.794 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:57.794 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:57.794 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:57.794 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:57.795 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:57.795 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:57.795 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:57.795 I CB-SDK: : Current app state: AppLifecycleState.inactive 15:03:57.834 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:57.835 I CB-SDK: : login richa = {full_name: Android user, address_book_name: null, email: s@gmail.com, login: Android, phone: 3011111111, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 123456, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1692955993141409/1692955993141409.jpg, guest: null, timezone: null, tag_list: null, id: 10483824, created_at: null, updated_at: null} 15:03:57.835 I CB-SDK: CubeChatConnection: [login] userId: 10483824, resourceId: null 15:03:57.835 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:57.835 I CB-SDK: : login richa = {full_name: Android user, address_book_name: null, email: s@gmail.com, login: Android, phone: 3011111111, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 123456, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1692955993141409/1692955993141409.jpg, guest: null, timezone: null, tag_list: null, id: 10483824, created_at: null, updated_at: null} 15:03:57.835 I CB-SDK: CubeChatConnection: [login] userId: 10483824, resourceId: null 15:03:57.836 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:57.836 I CB-SDK: : login richa = {full_name: Android user, address_book_name: null, email: s@gmail.com, login: Android, phone: 3011111111, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 123456, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1692955993141409/1692955993141409.jpg, guest: null, timezone: null, tag_list: null, id: 10483824, created_at: null, updated_at: null} 15:03:57.836 I CB-SDK: CubeChatConnection: [login] userId: 10483824, resourceId: null 15:03:57.837 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:57.839 I CB-SDK: : login richa = {full_name: Android user, address_book_name: null, email: s@gmail.com, login: Android, phone: 3011111111, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 123456, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1692955993141409/1692955993141409.jpg, guest: null, timezone: null, tag_list: null, id: 10483824, created_at: null, updated_at: null} 15:03:57.839 I CB-SDK: CubeChatConnection: [login] userId: 10483824, resourceId: null 15:03:57.844 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:57.847 I CB-SDK: : login richa = {full_name: Android user, address_book_name: null, email: s@gmail.com, login: Android, phone: 3011111111, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 123456, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1692955993141409/1692955993141409.jpg, guest: null, timezone: null, tag_list: null, id: 10483824, created_at: null, updated_at: null} 15:03:57.847 I CB-SDK: CubeChatConnection: [login] userId: 10483824, resourceId: null 15:03:57.848 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:57.848 I CB-SDK: : login richa = {full_name: Android user, address_book_name: null, email: s@gmail.com, login: Android, phone: 3011111111, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 123456, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1692955993141409/1692955993141409.jpg, guest: null, timezone: null, tag_list: null, id: 10483824, created_at: null, updated_at: null} 15:03:57.848 I CB-SDK: CubeChatConnection: [login] userId: 10483824, resourceId: null 15:03:57.848 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:57.849 I CB-SDK: : login richa = {full_name: Android user, address_book_name: null, email: s@gmail.com, login: Android, phone: 3011111111, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 123456, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1692955993141409/1692955993141409.jpg, guest: null, timezone: null, tag_list: null, id: 10483824, created_at: null, updated_at: null} 15:03:57.849 I CB-SDK: CubeChatConnection: [login] userId: 10483824, resourceId: null 15:03:57.849 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:57.849 I CB-SDK: : login richa = {full_name: Android user, address_book_name: null, email: s@gmail.com, login: Android, phone: 3011111111, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 123456, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1692955993141409/1692955993141409.jpg, guest: null, timezone: null, tag_list: null, id: 10483824, created_at: null, updated_at: null} 15:03:57.849 I CB-SDK: CubeChatConnection: [login] userId: 10483824, resourceId: null 15:03:57.849 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:57.849 I CB-SDK: : login richa = {full_name: Android user, address_book_name: null, email: s@gmail.com, login: Android, phone: 3011111111, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 123456, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1692955993141409/1692955993141409.jpg, guest: null, timezone: null, tag_list: null, id: 10483824, created_at: null, updated_at: null} 15:03:57.850 I CB-SDK: CubeChatConnection: [login] userId: 10483824, resourceId: null 15:03:57.850 I CB-SDK: : Current app state: AppLifecycleState.resumed 15:03:57.850 I CB-SDK: : login richa = {full_name: Android user, address_book_name: null, email: s@gmail.com, login: Android, phone: 3011111111, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 123456, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1692955993141409/1692955993141409.jpg, guest: null, timezone: null, tag_list: null, id: 10483824, created_at: null, updated_at: null} 15:03:57.850 I CB-SDK: CubeChatConnection: [login] userId: 10483824, resourceId: null 15:03:57.881 I CB-SDK: PushNotificationsManager: [getToken] token: caa0d8KrRvKu3_3ss8_9Qb:APA91bHVhn54Gdk4H62LV48kYsrnWxztUq0iAS8yuTpQGbNG0fX7NVQK2dR08I0AWyvRp3u2bGEjlqAkepDyOLzLWyHkASf6f_WISTi3bZH-nTmrqjtp-VAdC53Kxl4RAMPbESiG8ZyA 15:03:57.881 I CB-SDK: PushNotificationsManager: [subscribe] token: caa0d8KrRvKu3_3ss8_9Qb:APA91bHVhn54Gdk4H62LV48kYsrnWxztUq0iAS8yuTpQGbNG0fX7NVQK2dR08I0AWyvRp3u2bGEjlqAkepDyOLzLWyHkASf6f_WISTi3bZH-nTmrqjtp-VAdC53Kxl4RAMPbESiG8ZyA 15:03:57.881 I CB-SDK: PushNotificationsManager: [subscribe] token: caa0d8KrRvKu3_3ss8_9Qb:APA91bHVhn54Gdk4H62LV48kYsrnWxztUq0iAS8yuTpQGbNG0fX7NVQK2dR08I0AWyvRp3u2bGEjlqAkepDyOLzLWyHkASf6f_WISTi3bZH-nTmrqjtp-VAdC53Kxl4RAMPbESiG8ZyA 15:03:57.889 I CB-SDK: : ========================================================= 15:03:57.890 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: BB6A7DBBE3803E241269451ED4F91E358E42} 15:03:57.894 I CB-SDK: : ========================================================= 15:03:57.895 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: BB6A7DBBE3803E241269451ED4F91E358E42} 15:03:58.153 I CB-SDK: CubeChatConnection: Chat connection SocketOpened 15:03:58.821 I CB-SDK: : * 15:03:58.826 I CB-SDK: PushNotificationsManager: [subscribe] subscription ERROR: ResponseException: 403: {"errors":{"base":["Forbidden. Need user."]}} 15:03:58.925 I CB-SDK: CubeChatConnection: Chat connection Authenticated 15:03:58.962 I CB-SDK: : 15:03:58.964 I CB-SDK: PushNotificationsManager: [subscribe] subscription ERROR: ResponseException: 403: {"errors":{"base":["Forbidden. Need user."]}} 15:04:00.411 I CB-SDK: CubeChatConnection: Chat connection SessionInitialized 15:04:01.194 I CB-SDK: CubeChatConnection: Chat connection Ready 15:04:01.195 I CB-SDK: : _goDialogScreen 15:05:27.211 I CB-SDK: : ========================================================= 15:05:27.211 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: BB6A7DBBE3803E241269451ED4F91E358E42} 15:05:27.212 I CB-SDK: : ========================================================= 15:05:27.213 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: BB6A7DBBE3803E241269451ED4F91E358E42} 15:05:27.257 I CB-SDK: : ========================================================= 15:05:27.258 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: BB6A7DBBE3803E241269451ED4F91E358E42} 15:05:28.186 I CB-SDK: : 15:05:28.191 I CB-SDK: : GetDialog error ResponseException: 403: {"errors":{"base":["Forbidden. Need user."]}} 15:05:28.233 I CB-SDK: : 15:05:28.234 I CB-SDK: : GetDialog error ResponseException: 403: {"errors":{"base":["Forbidden. Need user."]}} 15:05:28.319 I CB-SDK: :
I am getting Forbidden. Need user on signup, can u check the logs and let me know whats the wrong here
` //-------------------------------------------------------------------------------- // ConnectyCube /// Create Account of ConnectyCube user void _createAccountPressed( MutationSignupSetupStepThreesignupSetpThreedatauser? user) { DebugLog.d('connectycube create an user with $user'); final userToSignUp = CubeUser();
userToSignUp.password = AppConstant.chatPassword;
userToSignUp.login = firstNameController.text;
userToSignUp.phone = mobileController.text;
userToSignUp.email = emailAddressController.text;
userToSignUp.fullName =
"${firstNameController.text} ${lastNameController.text}";
if (user?.avatar != null &&
user?.file_path != null &&
user?.file_path != "") {
userToSignUp.avatar = "${user?.file_path}${"/"}${user?.avatar}";
} else {
userToSignUp.avatar = "";
}
mainController.connectyCubeService.signInCC(userToSignUp);
} `
`Future
isLoginContinues = true;
if (!CubeSessionManager.instance.isActiveSessionValid()) {
try {
await createSession();
} catch (error) {
_processLoginError(error);
}
}
try {
final newUser = await signUp(user);
user.id = newUser.id;
await SharedPref.saveNewUser(user, ChatLoginType.login);
PushNotificationsManager.instance.init();
_loginToCubeChat(user);
} catch (exception) {
_processLoginError(exception);
}
}`
can u tell me when i have to use below method ?
_loginToCCWithSavedUser(context, loginType ?? LoginType.login);
if (!CubeSessionManager.instance.isActiveSessionValid()) { try { await createSession(); } catch (error) { _processLoginError(error); } }
I think its not going into create session but i dont know reason as i have followed all code of urs
onSessionRestore:
I/flutter ( 1771): CB-SDK: : =========================================================
I/flutter ( 1771): === REQUEST ==== f22be1d1-6128-4f8a-b67e-934cbc859c09 ===
I/flutter ( 1771): REQUEST
I/flutter ( 1771): POST https://api.connectycube.com/session
I/flutter ( 1771): HEADERS
I/flutter ( 1771): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: }
I/flutter ( 1771): BODY
I/flutter ( 1771): {"application_id":"7266","auth_key":"cKYHfvnvsHqX6JX","nonce":"1442505540","timestamp":"1692958190","signature":"58804d90c8868e37fda35bcfca793decfe637748"}
I/flutter ( 1771):
[log] ---Xmpp Sending:---
[log]
I/flutter ( 1771):
I/flutter ( 1771): CB-SDK: : ***
I/flutter ( 1771): RESPONSE 201 3a0c9a63-26b3-4699-a3e7-5c705ad9f43b
I/flutter ( 1771): HEADERS
I/flutter ( 1771): {cb-token-expirationdate: 2023-08-25 12:09:51 UTC, connection: keep-alive, date: Fri, 25 Aug 2023 10:09:51 GMT, strict-transport-security: max-age=15768000; includeSubDomains, content-length: 227, access-control-expose-headers: CB-Token-ExpirationDate, Date, content-type: application/json; charset=utf-8, server: nginx/1.25.0}
I/flutter ( 1771): BODY
I/flutter ( 1771): {"session":{"created_at":"2023-08-25T10:09:51.851Z","updated_at":"2023-08-25T10:09:51.851Z","application_id":7266,"token":"F2223DAFE47F24114739AB02EE9667123EDC","nonce":1115830105,"ts":1692958190,"user_id":null,"id":905612109}}
I/flutter ( 1771):
I/flutter ( 1771): CB-SDK: : =========================================================
I/flutter ( 1771): === REQUEST ==== c46a0021-04f6-4737-aafa-160b470e3207 ===
I/flutter ( 1771): REQUEST
I/flutter ( 1771): GET https://api.connectycube.com/chat/Dialog
I/flutter ( 1771): HEADERS
I/flutter ( 1771): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: F2223DAFE47F24114739AB02EE9667123EDC}
I/flutter ( 1771): BODY
I/flutter ( 1771):
I/flutter ( 1771):
I/flutter ( 1771): CB-SDK: : ***
I/flutter ( 1771): * RESPONSE 201 3f79f457-5dfc-4b43-83b4-5f429a4e552c *
I/flutter ( 1771): HEADERS
I/flutter ( 1771): {cb-token-expirationdate: 2023-08-25 12:09:51 UTC, connection: keep-alive, date: Fri, 25 Aug 2023 10:09:51 GMT, strict-transport-security: max-age=15768000; includeSubDomains, content-length: 226, access-control-expose-headers: CB-Token-ExpirationDate, Date, content-type: application/json; charset=utf-8, server: nginx/1.25.0}
I/flutter ( 1771): BODY
I/flutter ( 1771): {"session":{"created_at":"2023-08-25T10:09:51.912Z","updated_at":"2023-08-25T10:09:51.912Z","application_id":7266,"token":"96A8D55E258D7E5A82977A0E8FF3B344E532","nonce":510672205,"ts":1692958190,"user_id":null,"id":787647583}}
I/flutter ( 1771):
I/flutter ( 1771): CB-SDK: : =========================================================
I/flutter ( 1771): === REQUEST ==== ba988ce9-c17f-4d84-9a9e-2c5150ccc5a0 ===
I/flutter ( 1771): REQUEST
I/flutter ( 1771): GET https://api.connectycube.com/chat/Message/unread
I/flutter ( 1771): HEADERS
I/flutter ( 1771): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: 96A8D55E258D7E5A82977A0E8FF3B344E532}
I/flutter ( 1771): BODY
I/flutter ( 1771):
I/flutter ( 1771):
I/flutter ( 1771): CB-SDK: : ***
I/flutter ( 1771): RESPONSE 403 440a2705-8796-4230-b657-1a5171bade4d
I/flutter ( 1771): HEADERS
I/flutter ( 1771): {connection: keep-alive, content-type: application/json; charset=utf-8, date: Fri, 25 Aug 2023 10:09:53 GMT, strict-transport-security: max-age=15768000; includeSubDomains, server: nginx/1.25.0, content-length: 45}
I/flutter ( 1771): BODY
I/flutter ( 1771): {"errors":{"base":["Forbidden. Need user."]}}
I/flutter ( 1771):
I/flutter ( 1771): CB-SDK: : GetDialog error ResponseException: 403: {"errors":{"base":["Forbidden. Need user."]}}
I/flutter ( 1771): CB-SDK: : ***
I/flutter ( 1771): * RESPONSE 403 ba988ce9-c17f-4d84-9a9e-2c5150ccc5a0 *
I/flutter ( 1771): HEADERS
I/flutter ( 1771): {connection: keep-alive, content-type: application/json; charset=utf-8, date: Fri, 25 Aug 2023 10:09:53 GMT, strict-transport-security: max-age=15768000; includeSubDomains, server: nginx/1.25.0, content-length: 45}
I/flutter ( 1771): BODY
I/flutter ( 1771): {"errors":{"base":["Forbidden. Need user."]}}
I/flutter ( 1771):
[GETX] Info: _GetImpl Instance of '_GetImpl' runZonedGuarded: ResponseException: 403: {"errors":{"base":["Forbidden. Need user."]}}
I/flutter ( 1771): CB-SDK: : ***
I/flutter ( 1771): RESPONSE 403 c46a0021-04f6-4737-aafa-160b470e3207
I/flutter ( 1771): HEADERS
I/flutter ( 1771): {connection: keep-alive, content-type: application/json; charset=utf-8, date: Fri, 25 Aug 2023 10:09:53 GMT, strict-transport-security: max-age=15768000; includeSubDomains, server: nginx/1.25.0, content-length: 45}
I/flutter ( 1771): BODY
I/flutter ( 1771): {"errors":{"base":["Forbidden. Need user."]}}
I/flutter ( 1771):
I/flutter ( 1771): CB-SDK: : GetDialog error ResponseException: 403: {"errors":{"base":["Forbidden. Need user."]}}
I dont think its issue of session as its get created as per above log
the latest log is completely unreadable, but I tried...
According to the provided log, I can see that the session was created without the user. Let see step by step:
3a0c9a63-26b3-4699-a3e7-5c705ad9f43b
and this created session has token F2223DAFE47F24114739AB02EE9667123EDC
and "user_id":null
;c46a0021-04f6-4737-aafa-160b470e3207
);c46a0021-04f6-4737-aafa-160b470e3207
with 403 error;Please review your logic for the first signup into the app and the next app starts with saved user.
can u tell me when i have to use below method ?
_loginToCCWithSavedUser(context, loginType ?? LoginType.login);
can u tell me for this?
when you need to log in the the Connectycube with the saved before user, e.g. after restarting the app or etc.
`Future signInCC(CubeUser user, {bool isEmailSelected = false,bool isLoginContinues = false}) async { if (isLoginContinues) return;
i added signup logic , i can not find what is the wrong here. although when i do logout n login then its working fine, so
16:59:29.940 I CB-SDK: : ***
16:59:29.941 I * RESPONSE 201 30b038ab-07ba-4896-bc4b-e61de82c1cbb *
16:59:29.941 I HEADERS
16:59:29.941 I {cb-token-expirationdate: 2023-08-25 13:29:29 UTC, connection: keep-alive, date: Fri, 25 Aug 2023 11:29:29 GMT, strict-transport-security: max-age=15768000; includeSubDomains, content-length: 397, access-control-expose-headers: CB-Token-ExpirationDate, Date, content-type: application/json; charset=utf-8, server: nginx/1.25.0}
16:59:29.941 I BODY
16:59:29.941 I {"user":{"_id":"64e89099303009002ea4ce86","id":10484542,"created_at":"2023-08-25T11:29:29Z","updated_at":"2023-08-25T11:29:29Z","login":"aaaaaaaa","full_name":"aaaaaaaa","last_request_at":null,"timezone":null,"email":null,"phone":null,"website":null,"twitter_id":null,"external_user_id":null,"facebook_id":null,"custom_data":null,"user_tags":null,"avatar":null,"external_id":null,"is_guest":null}}
16:59:29.941 I
16:59:29.949 I signUp newUser {full_name: aaaaaaaa, address_book_name: null, email: null, login: aaaaaaaa, phone: null, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: null, oldPassword: null, custom_data: null, avatar: null, guest: null, timezone: null, tag_list: null, id: 10484542, created_at: 2023-08-25T11:29:29.000Z, updated_at: 2023-08-25T11:29:29.000Z}
16:59:29.960 I CB-SDK: PushNotificationsManager: [init]
16:59:29.964 I CB-SDK: : =========================================================
16:59:29.964 I === REQUEST ==== 476c3d76-3ea0-400b-9fa1-c5ac9f606dfe ===
16:59:29.964 I REQUEST
16:59:29.964 I POST https://api.connectycube.com/login
16:59:29.964 I HEADERS
16:59:29.964 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.6.0, CB-Token: 0F4E084E5454976001D0D4B812874938FA20}
16:59:29.964 I BODY
16:59:29.964 I {"login":"aaaaaaaa","password":"123456"}
16:59:29.964 I
16:59:29.976 I CB-SDK: PushNotificationsManager: [getToken] token: fpoMrfW8S8a3bWH2auXmCm:APA91bHTfF9v9JGCGbJwZA3JgNS8M0fNfOSbiWh6fGjQDXz5b29k84Y_fNm-5fYyjI5KEsM5ulvTv7NXYa90LoGwpfRYwhTxreLOoX4TZd6cmN967B9HpzQH7ahHIL5Po8CaSCadhM9g
16:59:29.976 I CB-SDK: PushNotificationsManager: [subscribe] token: fpoMrfW8S8a3bWH2auXmCm:APA91bHTfF9v9JGCGbJwZA3JgNS8M0fNfOSbiWh6fGjQDXz5b29k84Y_fNm-5fYyjI5KEsM5ulvTv7NXYa90LoGwpfRYwhTxreLOoX4TZd6cmN967B9HpzQH7ahHIL5Po8CaSCadhM9g
16:59:30.013 I CB-SDK: : =========================================================
16:59:30.013 I === REQUEST ==== f4737e89-7522-40ef-a74c-2b95738d2e59 ===
16:59:30.013 I REQUEST
16:59:30.013 I POST https://api.connectycube.com/subscriptions
16:59:30.013 I HEADERS
16:59:30.013 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.6.0, CB-Token: 0F4E084E5454976001D0D4B812874938FA20}
16:59:30.013 I BODY
16:59:30.013 I {"notification_channel":"gcm","device":{"udid":"TP1A.220624.014","platform":"android"},"push_token":{"environment":"development","client_identification_sequence":"fpoMrfW8S8a3bWH2auXmCm:APA91bHTfF9v9JGCGbJwZA3JgNS8M0fNfOSbiWh6fGjQDXz5b29k84Y_fNm-5fYyjI5KEsM5ulvTv7NXYa90LoGwpfRYwhTxreLOoX4TZd6cmN967B9HpzQH7ahHIL5Po8CaSCadhM9g","bundle_identifier":"com.connectycube.flutter.chat_sample"}}
16:59:30.013 I
16:59:30.979 I CB-SDK: : ***
16:59:30.979 I RESPONSE 403 f4737e89-7522-40ef-a74c-2b95738d2e59
16:59:30.979 I HEADERS
16:59:30.979 I {connection: keep-alive, content-type: application/json; charset=utf-8, date: Fri, 25 Aug 2023 11:29:30 GMT, strict-transport-security: max-age=15768000; includeSubDomains, server: nginx/1.25.0, content-length: 45}
16:59:30.979 I BODY
16:59:30.979 I {"errors":{"base":["Forbidden. Need user."]}}
16:59:30.979 I
16:59:30.982 I CB-SDK: PushNotificationsManager: [subscribe] subscription ERROR: ResponseException: 403: {"errors":{"base":["Forbidden. Need user."]}}
16:59:30.994 I CB-SDK: : ***
16:59:30.994 I * RESPONSE 200 476c3d76-3ea0-400b-9fa1-c5ac9f606dfe *
16:59:30.994 I HEADERS
16:59:30.994 I {cb-token-expirationdate: 2023-08-25 13:29:30 UTC, connection: keep-alive, date: Fri, 25 Aug 2023 11:29:30 GMT, strict-transport-security: max-age=15768000; includeSubDomains, content-length: 397, access-control-expose-headers: CB-Token-ExpirationDate, Date, content-type: application/json; charset=utf-8, server: nginx/1.25.0}
16:59:30.994 I BODY
16:59:30.994 I {"user":{"_id":"64e89099303009002ea4ce86","id":10484542,"created_at":"2023-08-25T11:29:29Z","updated_at":"2023-08-25T11:29:29Z","login":"aaaaaaaa","full_name":"aaaaaaaa","last_request_at":null,"timezone":null,"email":null,"phone":null,"website":null,"twitter_id":null,"external_user_id":null,"facebook_id":null,"custom_data":null,"user_tags":null,"avatar":null,"external_id":null,"is_guest":null}}
16:59:30.994 I
16:59:30.999 I CB-SDK: : _loginToCubeChat user {full_name: aaaaaaaa, address_book_name: null, email: null, login: aaaaaaaa, phone: null, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 123456, oldPassword: null, custom_data: null, avatar: null, guest: null, timezone: null, tag_list: null, id: 10484542, created_at: null, updated_at: null}
16:59:30.999 I CB-SDK: CubeChatConnection: [login] userId: 10484542, resourceId: null
16:59:31.003 I CB-SDK: CubeChatConnection: Chat connection SocketOpening
16:59:31.255 I CB-SDK: CubeChatConnection: Chat connection SocketOpened
16:59:32.696 I CB-SDK: CubeChatConnection: Chat connection Authenticated
16:59:35.452 I CB-SDK: CubeChatConnection: Chat connection SessionInitialized
16:59:36.988 I CB-SDK: CubeChatConnection: Chat connection Ready
16:59:36.989 I CB-SDK: : _goDialogScreen
16:59:36.990 I CB-SDK: : getNotificationAppLaunchDetails
16:59:36.990 I CB-SDK: : getNotificationAppLaunchDetails, payload: null
16:59:36.990 I CB-SDK: : getNotificationAppLaunchDetails, selectedDialogId: null
16:59:37.028 I CB-SDK: : =========================================================
16:59:37.028 I === REQUEST ==== fd2f6710-aa36-4921-8214-cf978f29a287 ===
16:59:37.028 I REQUEST
16:59:37.028 I GET https://api.connectycube.com/chat/Message/unread
16:59:37.028 I HEADERS
16:59:37.028 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.6.0, CB-Token: 0F4E084E5454976001D0D4B812874938FA20}
16:59:37.028 I BODY
16:59:37.028 I
16:59:37.028 I
16:59:37.029 I CB-SDK: : =========================================================
16:59:37.029 I === REQUEST ==== fc092355-95cb-4f71-86cd-ee765a010875 ===
16:59:37.029 I REQUEST
16:59:37.029 I GET https://api.connectycube.com/chat/Dialog
16:59:37.029 I HEADERS
16:59:37.029 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.6.0, CB-Token: 0F4E084E5454976001D0D4B812874938FA20}
16:59:37.029 I BODY
16:59:37.029 I
16:59:37.029 I
16:59:38.426 I CB-SDK: : ***
16:59:38.426 I RESPONSE 200 fc092355-95cb-4f71-86cd-ee765a010875
16:59:38.426 I HEADERS
16:59:38.426 I {cb-token-expirationdate: 2023-08-25 13:29:38 UTC, connection: keep-alive, date: Fri, 25 Aug 2023 11:29:38 GMT, strict-transport-security: max-age=15768000; includeSubDomains, content-length: 51, access-control-expose-headers: CB-Token-ExpirationDate, Date, content-type: application/json; charset=utf-8, server: nginx/1.25.0}
16:59:38.426 I BODY
16:59:38.426 I {"total_entries":0,"skip":0,"limit":100,"items":[]}
16:59:38.426 I
16:59:38.427 I CB-SDK: _BodyLayoutState: getDialogs: {currentPage: null, totalEntries: 0, perPage: null, skip: 0, limit: 100, items: []}
16:59:38.430 I CB-SDK: : ***
16:59:38.430 I * RESPONSE 200 fd2f6710-aa36-4921-8214-cf978f29a287 ***
16:59:38.430 I HEADERS
16:59:38.430 I {cb-token-expirationdate: 2023-08-25 13:29:38 UTC, connection: keep-alive, date: Fri, 25 Aug 2023 11:29:38 GMT, strict-transport-security: max-age=15768000; includeSubDomains, content-length: 11, access-control-expose-headers: CB-Token-ExpirationDate, Date, content-type: application/json; charset=utf-8, server: nginx/1.25.0}
16:59:38.430 I BODY
16:59:38.430 I {"total":0}
16:59:38.430 I
i have checked the logs of the demo of connectycube as well. same error coming in that also
please see the logs more carefully, Your request for subscription on the push notification (f4737e89-7522-40ef-a74c-2b95738d2e59) started before the response (476c3d76-3ea0-400b-9fa1-c5ac9f606dfe) for signin received
_signInCC(BuildContext context, CubeUser user) async { if (_isLoginContinues) return;
setState(() {
_isLoginContinues = true;
});
if (!CubeSessionManager.instance.isActiveSessionValid()) {
try {
await createSession();
} catch (error) {
_processLoginError(error);
}
}
signUp(user).then((newUser) {
print("signUp newUser $newUser");
user.id = newUser.id;
SharedPrefs.instance.saveNewUser(
user, isEmailSelected ? LoginType.email : LoginType.login);
PushNotificationsManager.instance.init();
signIn(user).then((result) {
_loginToCubeChat(context, user);
});
}).catchError((exception) {
_processLoginError(exception);
});
}
in ur demo its same
i have made some changes lets see
will check it later
You can try to move the string
PushNotificationsManager.instance.init();
after signIn(user).then((result) {
signUp(user).then((newUser) async{
log("signUp newUser $newUser");
user.id = newUser.id;
await SharedPref.saveNewUser(user, ChatLoginType.login);
signIn(user).then((result) {
PushNotificationsManager.instance.init();
_loginToCubeChat(user);
});
}).catchError((exception) {
_processLoginError(exception);
});
PLEASE UPDATE IN UR DEMO AS WELL. ISSUE RESOLVED. CLOSING THE TICKET. THANKS
I/flutter (28267): {"errors":{"base":["Forbidden. Need user."]}}
means that if you try to request dialogs using an empty session (without a user), you should call
signIn
before, or create the session with the user before calling this API.I/flutter (28267): {"type":3,"occupants_ids":[10023181]}
if you need to get all private dialogs for the current user you shouldn't set the current user id to the request, the server will return only user-related dialogs, and your user will not receive dialogs where it is not a member, please see our documentation
Check you set participant and login to the chat
means that your
CubeDialog
model should contain theoccupantsIds
with the actual opponents list and the user should login to the chat before using the chat functionality
hi @TatankaConCube , sometimes while chatting is going on in the app and suddently i get this message. "Check you set participant and login to the chat" , i guess session is getting expired at that time. but i have to restart the app for continuing the chat again. can u provide any status code with this error? so i can handle relogin while chatting ?
@TatankaConCube
CB-SDK: : Current app state: AppLifecycleState.resumed CB-SDK: : markActive richa = {full_name: Ria Patel, address_book_name: null, email: shahri@gmail.com, login: Ria, phone: , website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: Brain@2023, oldPassword: null, custom_data: null, avatar: https://main-court-demo.s3.amazonaws.com/images/User, guest: null, timezone: null, tag_list: null, id: 10640992, created_at: null, updated_at: null}
if (user != null) {
if (!CubeChatConnection.instance.isAuthenticated()) {
if (ChatLoginType.phone == SharedPref.getChatLoginType() || ChatLoginType.login == SharedPref.getChatLoginType() ) {
if(CubeSessionManager.instance.isActiveSessionValid()){
user.password = CubeSessionManager.instance.activeSession?.token;
} else {
var phoneAuthSession = await createPhoneAuthSession();
user.password = phoneAuthSession.token;
log('phoneAuthSession.token = ${phoneAuthSession.token}');
}
}
log('login richa = $user');
CubeChatConnection.instance.login(user);
} else {
log('markActive richa = $user');
CubeChatConnection.instance.markActive();
}
}
CubeSessionManager.instance.isActiveSessionValid() is false so user has active session so why i am getting above error
CB-SDK: : onSendMessage message= {_id: 64fedda7930afe6a3b1f2386, chat_dialog_id: null, message: hi, date_sent: 1694424487, sender_id: null, recipient_id: null, read_ids: null, delivered_ids: null, views_count: null, attachments: null, reactions: null, id: null, created_at: null, updated_at: null} 14:58:07.482 I CB-SDK: : onSendMessage error= IllegalStateException: Check you set participant and login to the chat
you are a little bit mistaken, the state CubeSessionManager.instance.isActiveSessionValid()
is about the API session, but the error Check you set participant and login to the chat
can be related to the Chat connection. Use the next code snippet for validation of the chat connection:
if (CubeChatConnection.instance.currentUser != null &&
CubeChatConnection.instance.chatConnectionState ==
CubeChatConnectionState.Ready) {
}
@TatankaConCube , still getting same issue , i dont know why this error comes up suddenly in ongoing chat.
Current app state: AppLifecycleState.resumed
I/flutter (15691): CB-SDK: : markActive richa = {full_name: Bhumi Parikh, address_book_name: null, email: shahricha723@gmail.com, login: Bhumi, phone: 9016121616, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: Brain@2023, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1694007534109988/1694007534109988.png, guest: null, timezone: null, tag_list: null, id: 10551524, created_at: null, updated_at: null}
I/flutter (15691): CB-SDK: AsyncStanzaSender: getInstance
I/flutter (15691): CB-SDK: AsyncStanzaSender: add new task RMGRETLVT
I/flutter (15691): CB-SDK: AsyncStanzaSender: start timer RMGRETLVT
[log] ---Xmpp Sending:---
[log]
[log] ---Xmpp Sending:---
[log]
[log] ---Xmpp Sending:---
[log]
[log] ---Xmpp Sending:---
[log]
[log] ---Xmpp Sending:---
[log]
[log] ---Xmpp Sending:---
[log]
[log] ---Xmpp Sending:---
[log]
[log] ---Xmpp Sending:---
[log]
[log] ---Xmpp Sending:---
[log]
[log] ---Xmpp Receiving:---
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza GCRKUPGKE
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task GCRKUPGKE
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza QJAMQCRAM
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task QJAMQCRAM
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza KOKXICJIC
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task KOKXICJIC
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza DDBQSRVAY
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task DDBQSRVAY
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza XGWLVLJTS
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task XGWLVLJTS
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza KJRSWRRHH
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task KJRSWRRHH
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza VXIKWMIQS
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task VXIKWMIQS
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza HHLGDKEIG
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task HHLGDKEIG
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza PQJAJSPIE
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task PQJAJSPIE
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza RTQTNPHSW
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task RTQTNPHSW
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza YUNRTYUDA
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task YUNRTYUDA
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza TBYYHEFFT
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task TBYYHEFFT
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza AJLRJSSKX
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task AJLRJSSKX
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza CHVIQJVMA
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task CHVIQJVMA
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza JSJSHKGXN
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task JSJSHKGXN
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza CMWKJNUVQ
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task CMWKJNUVQ
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza LEGQGNJGF
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task LEGQGNJGF
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza ANXUPUYOY
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task ANXUPUYOY
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza QBNMKSIKR
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task QBNMKSIKR
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza GXHFANIAD
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task GXHFANIAD
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza CSPCYCHQY
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task CSPCYCHQY
I/flutter (15691): CB-SDK: AsyncStanzaSender: responseStanza RMGRETLVT
I/flutter (15691): CB-SDK: AsyncStanzaSender: run task RMGRETLVT
I/flutter (15691): CB-SDK: AsyncStanzaSender: pause subscription
[log]
I provided the possible reasons for this error here. Can you reproduce this error on our Chat sample? Sorry, but we can't see your code and the log is filtered (without XMPP stanzas). We can't catch the reason for your case.
@TatankaConCube , ya i understand. when i login to the app it working fine so i am sure that login gets expired and i get this message. but why login gets expired suddently. and u guys are not handling this in a better way? ,
void onSendChatMessage(String content) { if (content.trim() != '') { final message = createCubeMsg(); message.body = content.trim(); onSendMessage(message); } else { showSnackBar(message: 'Nothing to send'); } }
/// On Send Message Update UI And Send Message to ConnectyCube void onSendMessage(CubeMessage message) async { log("onSendMessage message= $message"); commentController.clear(); await cubeDialog.sendMessage(message).then((value) { message.senderId = cubeUser.id; addMessageToListView(message); listScrollController.animateTo(0.0, duration: const Duration(milliseconds: 300), curve: Curves.easeOut); if (cubeDialog.type == CubeDialogType.PRIVATE) { ChatManager.instance.sentMessagesController .add(message..dialogId = cubeDialog.dialogId); } }).onError((error, stackTrace) { log("onSendMessage error= $error"); showSnackBar(message: "Error: $error"); });
}
this is my code of send message
createCubeMsg() is not giving me other data
because my dialog also has all data as below
{_id: 64fb1f10bc7b59002f7ea144, last_message: hiii, last_message_date_sent: 1694687832, last_message_user_id: 10551474, photo: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1693305744031191/1693305744031191.jpg, user_id: 10551524, xmpp_room_jid: null, unread_messages_count: 1, name: Richa Shah, type: 3, description: null, occupants_count: 2, occupants_ids: [10551474, 10551524], pinned_messages_ids: [], admins_ids: [], data: null, last_message_status: null, last_message_id: 6502e24cad7e27f3f104b61a, is_e2ee: false, is_muted: false, id: null, created_at: 2023-09-08T13:18:08.000Z, updated_at: 2023-09-14T10:37:12.000Z}
this is the data createcubemsg giving me
{_id: 6502f13c8a1272373f06b5d2, chat_dialog_id: null, message: null, date_sent: 0, sender_id: null, recipient_id: null, read_ids: null, delivered_ids: null, views_count: null, attachments: null, reactions: null, id: null, created_at: null, updated_at: null}
i am sure that login gets expired
no, the chat connection doesn't have limits for a lifetime. use this listener for listening the chat connection state changes
ya i have handled that but still get this issue , have u checked other logs ?
how do you handle it? have you printed some logs in each state? in your logs, I haven't found any logs related to the chat connection state, and the xmpp stanzas are absent. provided logs don't provide the possibility to understand what happens with the chat connection
{_id: 6502f13c8a1272373f06b5d2, chat_dialog_id: null, message: null, date_sent: 0, sender_id: null, recipient_id: null, read_ids: null, delivered_ids: null, views_count: null, attachments: null, reactions: null, id: null, created_at: null, updated_at: null}
@TatankaConCube all logs are of connectycube only ... of sending message when i am getting this error. and code is also from connectycube
@TatankaConCube can u tell me which session has more longer life from ChatLoginType.phone or ChatLoginType.login ?
there are no differences, the session lifetime is the same for any login provider. please check out our documentation about session lifetime
@TatankaConCube , i have not used loginToCCWithSavedUser method , do u think because of that i am getting this IllegalStateException: Check you set participant and login to the chat issue?
can u guide me where i have to put this loginToCCWithSavedUser method ? and what is the purpose of that
Launching lib/flavor/main_prod.dart on SM G781B in debug mode... Running Gradle task 'assembleDebug'... I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {uuid: a014ef63-e94c-4eeb-b16b-f90e4c681fbf, logged_in_user: } I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {} I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {offset: 1, limit: 5} I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {offset: 1, limit: 5} I/flutter (26114): payloadString I/flutter (26114): home device token I/flutter (26114): onReady I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {offset: 1, limit: 25, radius: 0, latitude: 0.0, longitude: 0.0} I/flutter (26114): _getNativeFcmToken I/flutter (26114): fvQDhy7rR6ugoihSjcqQHQ:APA91bFfnJ3Xsv5YBC5u3s5JTL2kRYW14eCgpKaQFQtrGyTLHtSN6SRMJkBK8xWj7ANupXaeoiiHtnJuVyfyk-F1jrzAz8pd_36Y8DaWJbrorvJ-MvN3Rgct6gJKaEdlCQwKOFsWpz6F I/flutter (26114): unhandled element style; Picture key: Svg loader I/flutter (26114): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════ I/flutter (26114): The following assertion was thrown during layout: I/flutter (26114): A RenderFlex overflowed by 17 pixels on the bottom. I/flutter (26114): I/flutter (26114): The overflowing RenderFlex has an orientation of Axis.vertical. I/flutter (26114): The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and I/flutter (26114): black striped pattern. This is usually caused by the contents being too big for the RenderFlex. I/flutter (26114): Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the I/flutter (26114): RenderFlex to fit within the available space instead of being sized to their natural size. I/flutter (26114): This is considered an error condition because it indicates that there is content that cannot be I/flutter (26114): seen. If the content is legitimately bigger than the available space, consider clipping it with a I/flutter (26114): ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex, I/flutter (26114): like a ListView. I/flutter (26114): The specific RenderFlex in question is: RenderFlex#468a9 OVERFLOWING: I/flutter (26114): creator: Column ← Padding ← DecoratedBox ← Container ← Listener ← RawGestureDetector ← I/flutter (26114): GestureDetector ← Semantics ← MouseRegion ← Semantics ← _FocusInheritedScope ← Focus ← ⋯ I/flutter (26114): parentData: offset=Offset(17.0, 17.0) (can use size) I/flutter (26114): constraints: BoxConstraints(w=124.0, h=66.0) I/flutter (26114): size: Size(124.0, 66.0) I/flutter (26114): direction: vertical I/flutter (26114): mainAxisAlignment: start I/flutter (26114): mainAxisSize: max I/flutter (26114): crossAxisAlignment: start I/flutter (26114): textDirection: ltr I/flutter (26114): verticalDirection: down I/flutter (26114): ◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤ I/flutter (26114): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {PlayerOfWeek: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: [{uuid: e29950e2-2c4d-48e1-a517-2c2c5d6efc54, video_title: How to add you tube video in this module, file_path: https://main-court-demo.s3.amazonaws.com/videos/play-of-the-week/150715548102, thumbnail_image: 1000_F_573697847_Z1G3si0ySLqsNHfvSLRuQRHU9rO299p9.jpg, created_at: Sep 03, 2023 - 10:25 am, upload_video: null, is_like: false, comment_count: 9, like_count: 0, video_type: 2, video_link: https://player.vimeo.com/video/369962932?h=33665b97e1&title=0&byline=0&portrait=0, __typename: PlayerOfWeekListFront}, {uuid: 6a2f25e3-f185-4598-b357-3f186e59e89d, video_title: Third play of the week is here, file_path: https://main-court-demo.s3.amazonaws.com/videos/play-of-the-week/940096140527, thumbnail_image: maxresdefault.jpg, created_at: Aug 30, 2023 - 11:34 am, upload_video: null, is_like: false, comment_count: 9, like_count: 0, video_type: 1, video_l I/flutter (26114): I/flutter (26114): I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getCongratulationList: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: [{uuid: a1c76c8f-d305-4857-bb45-9ba43993720f, full_name: Bhumi Parikh, avatar: 1694007534109988.png, file_path: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1694007534109988, match_type: Single, location: Ahmedabad, old_skill_level: 2.5, new_skill_level: 3.5, is_like: true, comment_count: 0, like_count: 5, is_friend: true, new_recommendation: , old_recommendation: , type: skill, message: On Improving Skill Level., user_uuid: a1c76c8f-d305-4857-bb45-9ba43993720a, connectycube_id: 10551524, typename: CongListFront}], pagination: {offset: 1, limit: 5, total_count: 1, typename: Pagination}, typename: CongListFrontInfo}, __typename: Query} I/flutter (26114): I/flutter (26114): I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getBannerList: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: [{uuid: 0db79c97-f4dc-4400-8dbf-57fa335877b4, description:
Banner Add 2
, title: Banner 2, file_path: https://main-court-demo.s3.amazonaws.com/images/Banner/1233277774567, file_name: THE POWER PRO.png, file_type: image, start_date: 2023-08-16 00:00:00, end_date: 2023-08-17 00:00:00, interval: 3, typename: getBannerList}, {uuid: 0d1760d7-1ab6-4005-b146-d69d332deb77, description:TESTING
, title: Testing, file_path: https://main-court-demo.s3.amazonaws.com/images/Banner/1506579081754, file_name: istockphoto-517420449-2048x2048 (2).jpg, file_type: image, start_date: 2023-09-11 00:00:00, end_date: 2023-09-12 00:00:00, interval: 3, typename: getBannerList}], typename: BannerDataInfo}, __typename: Query} I/flutter (26114): I/flutter (26114): I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getUserProfile: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: {uuid: a014ef63-e94c-4eeb-b16b-f90e4c681fbf, first_name: Richa, last_name: Shah, country_name: india, phone_country_id: 1, connectycube_id: 10551474, mobile_number: 9016804343, status: Active, unread_count: 4, avatar: 1693305744031191.jpg, bio_data: null, rating: , created_at: 2023-08-29 10:41:02, gender: 0, is_friend: true, date_of_birth: 2010-08-17, file_path: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1693305744031191, country: United States, state: , city: , email: richashah688@gmail.com, recommendation: Unrated, recommanded_by: 0, common_grp: 0, badges: [], location: Ellisbridge , Ahmedabad, longitude: 72.5668797, latitude: 23.0246278, redius: 15, isBlocked: false, pickers: [], clubs: [], badgesList: [{uuid: 1f6e99e8-3db3-434a-a4c0-a49d399e8009, name: Badger ABC, image: imag2.jpg, file_path: https://main-court-demo.s3.am I/flutter (26114): I/flutter (26114): I/flutter (26114): User Image :==> https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1693305744031191/1693305744031191.jpg I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {latitude: 23.0246278, longitude: 72.5668797, radius: 15} I/flutter (26114): Another exception was thrown: A RenderFlex overflowed by 16 pixels on the right. I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getScheduleMatchList: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: [], pagination: {offset: 1, limit: 25, total_count: 0, typename: Pagination}, typename: ScheduleMatchListFrontInfo}, __typename: Query} I/flutter (26114): I/flutter (26114): I/flutter (26114): match schedule list = [] I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getDashboardData: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: {open_match_count: 6, scheduled_match_count: 0, recently_joined: 57, upcoming_events: 6, typename: getDashboardCount}, typename: dashboardCount}, typename: Query} I/flutter (26114): I/flutter (26114): I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {offset: 1, limit: 5} I/flutter (26114): CB-SDK: : *** I/flutter (26114): * RESPONSE 201 34d9094e-c71a-472c-96b4-71569b93bdf5 *** I/flutter (26114): HEADERS I/flutter (26114): {cb-token-expirationdate: 2023-09-15 15:42:38 UTC, connection: keep-alive, date: Fri, 15 Sep 2023 13:42:38 GMT, strict-transport-security: max-age=15768000; includeSubDomains, content-length: 842, access-control-expose-headers: CB-Token-ExpirationDate, Date, content-type: application/json; charset=utf-8, server: nginx/1.25.0} I/flutter (26114): BODY I/flutter (26114): {"session":{"created_at":"2023-09-15T13:42:38.015Z","updated_at":"2023-09-15T13:42:38.015Z","application_id":7266,"token":"25A37563CBE6A1B1AEC62E0F74E8AFE7D641","nonce":6299587,"ts":1694785355,"user_id":10551474,"id":10551474,"user":{"_id":"64edcb9d303009002ea5fcce","id":10551474,"created_at":"2023-08-29T10:42:37Z","updated_at":"2023-09-15T13:39:09Z","last_request_at":"2023-09-15T13:39:09Z","login":"Richa","email":"richashah688@gmail.com","full_name":"Richa Shah","phone":"9016804343","custom_data":"{uuid: a014ef63-e94c-4eeb-b16b-f90e4c681fbf}","avatar":"https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1693305744031191/1693305744031191.jpg","external_id":"a014ef63-e94c-4eeb-b16b-f90e4c681fbf","timezone":null,"website":null,"twitter_id":null,"external_user_id":null,"facebook_id":null,"user_tags":null,"is_guest":null}}} I/flutter (26114): I/flutter (26114): CB-SDK: : login with = {full_name: Richa Shah, address_book_name: null, email: richashah688@gmail.com, login: Richa, phone: 9016804343, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 37EC6B4714B87F44A34C090624C7202D78D0, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1693305744031191/1693305744031191.jpg, guest: null, timezone: null, tag_list: null, id: 10551474, created_at: null, updated_at: null} I/flutter (26114): CB-SDK: CubeChatConnection: [login] userId: 10551474, resourceId: null I/flutter (26114): CB-SDK: CubeChatConnection: Chat connection SocketOpening I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getNewsList: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, __typename: Meta}, data: [], pagination: {offset: 1, limit: 5, total_count: 0, typename: Pagination}, typename: NewsListFrontInfo}, typename: Query} I/flutter (26114): I/flutter (26114): I/flutter (26114): news list = [] I/flutter (26114): CB-SDK: CubeChatConnection: Chat connection SocketOpened I/flutter (26114): CB-SDK: CubeChatConnection: Chat connection AuthenticationFailure I/flutter (26114): CB-SDK: CubeChatConnection: Chat connection Closing I/flutter (26114): CB-SDK: CubeChatConnection: Chat connection Closed I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {offset: 1, limit: 25, name: , group_type: , club: , skill: , is_explore_list: true, user_uuid: , status: , sort_column: , sort_order: } I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {offset: 1, limit: 25, name: , rating: , gender: , radius: 15, latitude: 23.0246278, longitude: 72.5668797, min_age: 13, max_age: 100, is_friend: false, recommendation: , sort_column: , sort_order: } I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {offset: 1, limit: 25, name: , latitude: 23.0246278, longitude: 72.5668797, radius: 15} I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getGroupDataFront: {meta: {status: true, message: Group details Fetched successfully, message_code: GROUP_LIST_SUCCESS, status_code: 200, typename: Meta}, data: [{sr_no: 1, uuid: 25c4bc19-d358-421b-ae5e-e75f53ae2bb8, name: Adanced Group, status: Active, owner: David Alonso, image: 1694125104829160.jpg, isSelected: false, file_path: https://main-court-demo122136-dev.s3.amazonaws.com/public/Group/1694125104829160, no_of_player: 24, clubs: [], types: [{uuid: b5101d75-edc7-4c3d-9b07-57956d493b01, name: Advanced, typename: typeInfo}], rating: 4, min_rating: null, created_by: 776, created_at: 2023-09-04 01:24:33, typename: GroupData}, {sr_no: 2, uuid: 50266b14-fc17-4ee8-9336-55be7d8870a9, name: Richie, status: Active, owner: Ria Patel, image: User.png, isSelected: false, file_path: https://main-court-demo.s3.amazonaws.com/images/User, no_of_player: 4, clubs: [], types: [], rating: null, min_rating: null, created_by: 843, created_at: 2023-09-04 11:28:16, __typename: GroupData}], paginatio I/flutter (26114): I/flutter (26114): I/flutter (26114): Explore group ApiCall API data : Instance of 'QuerygetGroupDataFrontgetGroupDataFrontmeta' I/flutter (26114): Type Of Group DAta : 1 I/flutter (26114): Type Of Group DAta : 0 I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getExploreClubList: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: [{uuid: 093884e0-be5e-4235-bcce-a584f571eb5e, name: Club Babylon, type: Private, image: 1694761164752159.jpg, file_path: https://main-court-demo122136-dev.s3.amazonaws.com/public/Club/1694761164752159, is_membership_req: false, no_of_member: 1, location: Babylon Club Road, S P Road, Near, Science City Cir, Sola, Bhadaj, Ahmedabad, Gujarat 380060, India, typename: getExploreClubList}, {uuid: cb4dd444-e68f-42d1-8022-33d7ad37a266, name: CLUB O7 TEST, type: Public, image: , file_path: null, is_membership_req: true, no_of_member: 1, location: CLUB O7, Shela, Gujarat 380058, India, __typename: getExploreClubList}, {uuid: 9ca0c16d-11be-47c1-aaab-540c21d327bc, name: Karnavati Club, type: Private, image: , file_path: https://maps.googleapis.com/maps/api/place/photo?maxwidth=4000&photo_reference=ATJ83zjpixFMJg13XWTQgxgoOwwjJtZF1vj-uan9daPk9deZ9GqAEz I/flutter (26114): I/flutter (26114): I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {exploreNetworkList: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: [{uuid: 03c0e50b-4b19-4dec-8fd8-15f7fd4746a1, full_name: Admin Janki, rating: 5, file_path: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1693502819828124, image: 1693502819828124.jpg, gender: Female, age: 25, location: Naranpura , Ahmedabad, isSelected: false, recommendation: Unrated, connectycube_id: 0, isFriend: false, clubs: [], typename: exploreNetworkInfoList}, {uuid: f74ffd3e-69b3-4c32-9c05-561e0bb206b7, full_name: Admin tuesday, rating: 3.5, file_path: https://main-court-demo.s3.amazonaws.com/images/User/1580992689654, image: ssss.jpeg, gender: Female, age: 30, location: Bodakdev , Ahmedabad, isSelected: false, recommendation: Unrated, connectycube_id: 0, isFriend: false, clubs: [], typename: exploreNetworkInfoList}, {uuid: ac0f9d0b-49eb-497b-93de-4e8058b52e74, full_name: Admin xxx Check xxx, rating: 4.5, file_pa I/flutter (26114): I/flutter (26114): I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): onTextSubmit : anu I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {offset: 1, limit: 25, name: anu, rating: , gender: , radius: 15, latitude: 23.0246278, longitude: 72.5668797, min_age: 13, max_age: 100, is_friend: false, recommendation: , sort_column: , sort_order: } I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {exploreNetworkList: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: [{uuid: 32ebd32a-dd3c-4c6c-a76a-106ac85d1706, full_name: anu anu, rating: 1, file_path: https://main-court-demo.s3.amazonaws.com/images/User, image: User.png, gender: Male, age: 24, location: Ahmedabad, isSelected: false, recommendation: Unrated, connectycube_id: 10878357, isFriend: false, clubs: [], typename: exploreNetworkInfoList}], pagination: {offset: 1, limit: 25, total_count: 1, typename: Pagination}, typename: exploreNetworkInfo}, typename: Query} I/flutter (26114): I/flutter (26114): I/flutter (26114): Club List Data : [] I/flutter (26114): Club List Data : [] I/flutter (26114): CB-SDK: : ========================================================= I/flutter (26114): === REQUEST ==== df0dddc6-a320-47bd-a578-5bfc28bf5fc8 === I/flutter (26114): REQUEST I/flutter (26114): GET https://api.connectycube.com/chat/Dialog I/flutter (26114): HEADERS I/flutter (26114): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.8.0, CB-Token: 25A37563CBE6A1B1AEC62E0F74E8AFE7D641} I/flutter (26114): BODY I/flutter (26114):Banner Add 2
, title: Banner 2, file_path: https://main-court-demo.s3.amazonaws.com/images/Banner/1233277774567, file_name: THE POWER PRO.png, file_type: image, start_date: 2023-08-16 00:00:00, end_date: 2023-08-17 00:00:00, interval: 3, typename: getBannerList}, {uuid: 0d1760d7-1ab6-4005-b146-d69d332deb77, description:TESTING
, title: Testing, file_path: https://main-court-demo.s3.amazonaws.com/images/Banner/1506579081754, file_name: istockphoto-517420449-2048x2048 (2).jpg, file_type: image, start_date: 2023-09-11 00:00:00, end_date: 2023-09-12 00:00:00, interval: 3, typename: getBannerList}], typename: BannerDataInfo}, typename: Query} I/flutter (26114): I/flutter (26114): I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {PlayerOfWeek: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, __typename: Meta}, data: [{uuid: e29950e2-2c4d-48e1-a517-2c2c5d6efc54, video_title: How to add you tube video in this module, file_path: https://main-court-demo.s3.amazonaws.com/videos/play-of-the-week/150715548102, thumbnail_image: 1000_F_573697847_Z1G3si0ySLqsNHfvSLRuQRHU9rO299p9.jpg, created_at: Sep 03, 2023 - 10:25 am, upload_video: null, is_like: false, comment_count: 9, like_count: 0, video_type: 2, video_link: https://player.vimeo.com/video/369962932?h=33665b97e1&title=0&byline=0&portrait=0, typename: PlayerOfWeekListFront}, {uuid: 6a2f25e3-f185-4598-b357-3f186e59e89d, video_title: Third play of the week is here, file_path: https://main-court-demo.s3.amazonaws.com/videos/play-of-the-week/940096140527, thumbnail_image: maxresdefault.jpg, created_at: Aug 30, 2023 - 11:34 am, upload_video: null, is_like: false, comment_count: 9, like_count: 0, video_type: 1, video_l I/flutter (26114): I/flutter (26114): I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getCongratulationList: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: [{uuid: a1c76c8f-d305-4857-bb45-9ba43993720f, full_name: Bhumi Parikh, avatar: 1694007534109988.png, file_path: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1694007534109988, match_type: Single, location: Ahmedabad, old_skill_level: 2.5, new_skill_level: 3.5, is_like: true, comment_count: 0, like_count: 5, is_friend: true, new_recommendation: , old_recommendation: , type: skill, message: On Improving Skill Level., user_uuid: a1c76c8f-d305-4857-bb45-9ba43993720a, connectycube_id: 10551524, __typename: CongListFront}], pagination: {offset: 1, limit: 5, total_count: 1, typename: Pagination}, typename: CongListFrontInfo}, typename: Query} I/flutter (26114): I/flutter (26114): I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getUserProfile: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: {uuid: a014ef63-e94c-4eeb-b16b-f90e4c681fbf, first_name: Richa, last_name: Shah, country_name: india, phone_country_id: 1, connectycube_id: 10551474, mobile_number: 9016804343, status: Active, unread_count: 4, avatar: 1693305744031191.jpg, bio_data: null, rating: , created_at: 2023-08-29 10:41:02, gender: 0, is_friend: true, date_of_birth: 2010-08-17, file_path: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1693305744031191, country: United States, state: , city: , email: richashah688@gmail.com, recommendation: Unrated, recommanded_by: 0, common_grp: 0, badges: [], location: Ellisbridge , Ahmedabad, longitude: 72.5668797, latitude: 23.0246278, redius: 15, isBlocked: false, pickers: [], clubs: [], badgesList: [{uuid: 1f6e99e8-3db3-434a-a4c0-a49d399e8009, name: Badger ABC, image: imag2.jpg, file_path: https://main-court-demo.s3.am I/flutter (26114): I/flutter (26114): I/flutter (26114): User Image :==> https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1693305744031191/1693305744031191.jpg I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {latitude: 23.0246278, longitude: 72.5668797, radius: 15} ✓ Built build/app/outputs/flutter-apk/app-debug.apk. I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getDashboardData: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: {open_match_count: 6, scheduled_match_count: 0, recently_joined: 57, upcoming_events: 6, typename: getDashboardCount}, typename: dashboardCount}, typename: Query} I/flutter (26114): I/flutter (26114): I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {offset: 1, limit: 5} I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getNewsList: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, __typename: Meta}, data: [], pagination: {offset: 1, limit: 5, total_count: 0, typename: Pagination}, typename: NewsListFrontInfo}, typename: Query} I/flutter (26114): I/flutter (26114): I/flutter (26114): news list = [] I/flutter (26114): URL: null I/flutter (26114): Request: Instance of 'DocumentNode' I/flutter (26114): Variables: {uuid: a014ef63-e94c-4eeb-b16b-f90e4c681fbf, logged_in_user: } I/flutter (26114): Response: I/flutter (26114): URL: null I/flutter (26114): Response: {getUserProfile: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, __typename: Meta}, data: {uuid: a014ef63-e94c-4eeb-b16b-f90e4c681fbf, first_name: Richa, last_name: Shah, country_name: india, phone_country_id: 1, connectycube_id: 10551474, mobile_number: 9016804343, status: Active, unread_count: 4, avatar: 1693305744031191.jpg, bio_data: null, rating: , created_at: 2023-08-29 10:41:02, gender: 0, is_friend: true, date_of_birth: 2010-08-17, file_path: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1693305744031191, country: United States, state: , city: , email: richashah688@gmail.com, recommendation: Unrated, recommanded_by: 0, common_grp: 0, badges: [], location: Ellisbridge , Ahmedabad, longitude: 72.5668797, latitude: 23.0246278, redius: 15, isBlocked: false, pickers: [], clubs: [], badgesList: [{uuid: 1f6e99e8-3db3-434a-a4c0-a49d399e8009, name: Badger ABC, image: imag2.jpg, file_path: https://main-court-demo.s3.am I/flutter (26114): I/flutter (26114): I/flutter (26114): User Image :==> https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1693305744031191/1693305744031191.jpg Installing build/app/outputs/flutter-apk/app-debug.apk... D/FlutterGeolocator(17464): Attaching Geolocator to activity D/FlutterGeolocator(17464): Creating service. D/FlutterGeolocator(17464): Binding to location service. W/FlutterWebRTCPlugin(17464): audioFocusChangeListener [Earpiece(name=Earpiece)] Earpiece(name=Earpiece) W/FlutterWebRTCPlugin(17464): audioFocusChangeListener [Speakerphone(name=Speakerphone), Earpiece(name=Earpiece)] Speakerphone(name=Speakerphone) D/FlutterGeolocator(17464): Geolocator foreground service connected D/FlutterGeolocator(17464): Initializing Geolocator services D/FlutterGeolocator(17464): Flutter engine connected. Connected engine count 1 Debug service listening on ws://127.0.0.1:41415/4m41-MG84uk=/ws Syncing files to device SM G781B... D/ProfileInstaller(17464): Installing profile for com.bv.mainCourt I/flutter (17464): [main] init Firebase I/FirebaseApp(17464): Device unlocked: initializing all Firebase APIs for app MainCourt I/flutter (17464): Successfully configured I/flutter (17464): CB-SDK: : createConnectyCubeSession I/flutter (17464): loginToConnectyCubeForExistingUser main controller I/flutter (17464): CB-SDK: : [loginToCCWithSavedUser] user: ChatLoginType D/MapsInitializer(17464): preferredRenderer: LATEST D/zzcb (17464): preferredRenderer: LATEST I/zzcb (17464): Making Creator dynamically I/DynamiteModule(17464): Considering local module com.google.android.gms.maps_core_dynamite:0 and remote module com.google.android.gms.maps_core_dynamite:233012100 I/DynamiteModule(17464): Selected remote version of com.google.android.gms.maps_core_dynamite, version >= 233012100 V/DynamiteModule(17464): Dynamite loader version >= 2, using loadModule2NoCrashUtils W/ziparchive(17464): Unable to open '/data/user_de/0/com.google.android.gms/app_chimera/m/00000223/dl-MapsCoreDynamite.integ_233012100100400.dm': No such file or directory W/ziparchive(17464): Unable to open '/data/user_de/0/com.google.android.gms/app_chimera/m/00000223/dl-MapsCoreDynamite.integ_233012100100400.dm': No such file or directory I/Google Android Maps SDK(17464): Google Play services client version: 12451000 I/flutter (17464): CB-SDK: : ========================================================= I/flutter (17464): === REQUEST ==== 1a6a68a3-0b84-47d7-9dec-85608ea8809e === I/flutter (17464): REQUEST I/flutter (17464): POST https://api.connectycube.com/session I/flutter (17464): HEADERS I/flutter (17464): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.8.0, CB-Token: } I/flutter (17464): BODY I/Google Android Maps SDK(17464): Google Play services package version: 233414045 I/flutter (17464): {"application_id":"7266","auth_key":"cKYHfvnvsHqX6JX","nonce":"532886102","timestamp":"1694785403","signature":"bd8eebf729a1c12d9a5ef27d8007635ec531af98"} I/Google Android Maps SDK(17464): Google Play services maps renderer version(maps_core): 233012100 I/flutter (17464): W/om.bv.mainCourt(17464): Accessing hidden field Ljava/util/Collections$SynchronizedCollection;->mutex:Ljava/lang/Object; (max-target-o, reflection, denied) W/om.bv.mainCourt(17464): Accessing hidden field Ljava/util/Collections$SynchronizedCollection;->c:Ljava/util/Collection; (unsupported, reflection, allowed) W/om.bv.mainCourt(17464): Accessing hidden method Ljava/util/Collections$SynchronizedSet;->Banner Add 2
, title: Banner 2, file_path: https://main-court-demo.s3.amazonaws.com/images/Banner/1233277774567, file_name: THE POWER PRO.png, file_type: image, start_date: 2023-08-16 00:00:00, end_date: 2023-08-17 00:00:00, interval: 3, __typename: getBannerList}, {uuid: 0d1760d7-1ab6-4005-b146-d69d332deb77, description:TESTING
, title: Testing, file_path: https://main-court-demo.s3.amazonaws.com/images/Banner/1506579081754, file_name: istockphoto-517420449-2048x2048 (2).jpg, file_type: image, start_date: 2023-09-11 00:00:00, end_date: 2023-09-12 00:00:00, interval: 3, typename: getBannerList}], typename: BannerDataInfo}, typename: Query} I/flutter (17464): I/flutter (17464): I/flutter (17464): Response: I/flutter (17464): URL: null I/flutter (17464): Response: {PlayerOfWeek: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: [{uuid: e29950e2-2c4d-48e1-a517-2c2c5d6efc54, video_title: How to add you tube video in this module, file_path: https://main-court-demo.s3.amazonaws.com/videos/play-of-the-week/150715548102, thumbnail_image: 1000_F_573697847_Z1G3si0ySLqsNHfvSLRuQRHU9rO299p9.jpg, created_at: Sep 03, 2023 - 10:25 am, upload_video: null, is_like: false, comment_count: 9, like_count: 0, video_type: 2, video_link: https://player.vimeo.com/video/369962932?h=33665b97e1&title=0&byline=0&portrait=0, __typename: PlayerOfWeekListFront}, {uuid: 6a2f25e3-f185-4598-b357-3f186e59e89d, video_title: Third play of the week is here, file_path: https://main-court-demo.s3.amazonaws.com/videos/play-of-the-week/940096140527, thumbnail_image: maxresdefault.jpg, created_at: Aug 30, 2023 - 11:34 am, upload_video: null, is_like: false, comment_count: 9, like_count: 0, video_type: 1, video_l I/flutter (17464): I/flutter (17464): I/flutter (17464): Response: I/flutter (17464): URL: null I/flutter (17464): Response: {getDashboardData: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, typename: Meta}, data: {open_match_count: 6, scheduled_match_count: 0, recently_joined: 57, upcoming_events: 6, typename: getDashboardCount}, typename: dashboardCount}, typename: Query} I/flutter (17464): I/flutter (17464): I/flutter (17464): URL: null I/flutter (17464): Request: Instance of 'DocumentNode' I/flutter (17464): Variables: {offset: 1, limit: 5} I/flutter (17464): Response: I/flutter (17464): URL: null I/flutter (17464): Response: {getNewsList: {meta: {status: true, message: Data fetched successfully, message_code: LIST_SUCCESS, status_code: 200, __typename: Meta}, data: [], pagination: {offset: 1, limit: 5, total_count: 0, typename: Pagination}, typename: NewsListFrontInfo}, typename: Query} I/flutter (17464): I/flutter (17464): I/flutter (17464): news list = [] I/flutter (17464): CB-SDK: : *** I/flutter (17464): RESPONSE 201 b5f636d5-914e-4597-ab6f-22f154c8a599 I/flutter (17464): HEADERS I/flutter (17464): {cb-token-expirationdate: 2023-09-15 15:43:31 UTC, connection: keep-alive, date: Fri, 15 Sep 2023 13:43:31 GMT, strict-transport-security: max-age=15768000; includeSubDomains, content-length: 845, access-control-expose-headers: CB-Token-ExpirationDate, Date, content-type: application/json; charset=utf-8, server: nginx/1.25.0} I/flutter (17464): BODY I/flutter (17464): {"session":{"created_at":"2023-09-15T13:43:31.535Z","updated_at":"2023-09-15T13:43:31.535Z","application_id":7266,"token":"B2DD223AA552DE03E3A4C7003C29118313DD","nonce":1711007748,"ts":1694785408,"user_id":10551474,"id":10551474,"user":{"_id":"64edcb9d303009002ea5fcce","id":10551474,"created_at":"2023-08-29T10:42:37Z","updated_at":"2023-09-15T13:39:09Z","last_request_at":"2023-09-15T13:39:09Z","login":"Richa","email":"richashah688@gmail.com","full_name":"Richa Shah","phone":"9016804343","custom_data":"{uuid: a014ef63-e94c-4eeb-b16b-f90e4c681fbf}","avatar":"https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1693305744031191/1693305744031191.jpg","external_id":"a014ef63-e94c-4eeb-b16b-f90e4c681fbf","timezone":null,"website":null,"twitter_id":null,"external_user_id":null,"facebook_id":null,"user_tags":null,"is_guest":null}}} I/flutter (17464): I/flutter (17464): CB-SDK: : login with = {full_name: Richa Shah, address_book_name: null, email: richashah688@gmail.com, login: Richa, phone: 9016804343, website: null, last_request_at: null, external_user_id: null, external_id: null, facebook_id: null, twitter_id: null, password: 4B238875AA7EB614D5EAE8A12781A8871AE7, oldPassword: null, custom_data: null, avatar: https://main-court-demo122136-dev.s3.amazonaws.com/public/User/1693305744031191/1693305744031191.jpg, guest: null, timezone: null, tag_list: null, id: 10551474, created_at: null, updated_at: null} I/flutter (17464): CB-SDK: CubeChatConnection: [login] userId: 10551474, resourceId: null [log] D/[Connection]: State: XmppConnectionState.SocketOpening I/flutter (17464): CB-SDK: CubeChatConnection: Chat connection SocketOpening I/ViewRootImpl@a2977deMainActivity: ViewPostIme pointer 0 [log] D/[Connection]: State: XmppConnectionState.SocketOpened [log] ---Xmpp Sending:--- I/flutter (17464): CB-SDK: CubeChatConnection: Chat connection SocketOpened [log] <?xml version='1.0'?>[log] ---Xmpp Receiving:---
[log]
I/flutter (17464):
I/ViewRootImpl@a2977deMainActivity: ViewPostIme pointer 0
I/ViewRootImpl@a2977deMainActivity: ViewPostIme pointer 1
I/flutter (17464): CB-SDK: : ***
I/flutter (17464): * RESPONSE 200 ded6e5c6-9bfa-4c25-86b1-60a55bd8ad6d ***
I/flutter (17464): HEADERS
I/flutter (17464): {cb-token-expirationdate: 2023-09-15 15:43:38 UTC, connection: keep-alive, date: Fri, 15 Sep 2023 13:43:38 GMT, strict-transport-security: max-age=15768000; includeSubDomains, content-length: 3027, access-control-expose-headers: CB-Token-ExpirationDate, Date, content-type: application/json; charset=utf-8, server: nginx/1.25.0}
I/flutter (17464): BODY
I/flutter (17464): {"total_entries":5,"skip":0,"limit":100,"items":[{"_id":"65044dc8bb652a002f066110","user_id":10878093,"created_at":"2023-09-15T12:27:52Z","updated_at":"2023-09-15T13:32:34Z","name":"Sneh Shah","type":3,"photo":"https://main-court-demo.s3.amazonaws.com/images/User/User.png","occupants_ids":[10551474,10878093],"occupants_count":2,"is_e2ee":false,"is_muted":false,"last_message":"yo","last_message_date_sent":1694784754,"last_message_id":"65045cf2a52e6da31ef88ed3","last_message_user_id":10551474,"last_message_status":"sent","unread_messages_count":0,"pinned_messages_ids":[],"description":null,"xmpp_room_jid":null,"admins_ids":[]},{"_id":"65045890bb652a002f066807","user_id":10551474,"created_at":"2023-09-15T13:13:52Z","updated_at":"2023-09-15T13:29:13Z","name":"anu anu","type":3,"photo":"https://main-court-demo.s3.amazonaws.com/images/User/User.png","occupants_ids":[10551474,10878357],"occupants_count":2,"is_e2ee":false,"is_muted":false,"last_message":"hh","last_message_date_sent":1694784553,"last_message_id":"6
I/flutter (17464):
I/flutter (17464): CB-SDK: : getDialogs: {currentPage: null, totalEntries: 5, perPage: null, skip: 0, limit: 100, items: [{_id: 65044dc8bb652a002f066110, last_message: yo, last_message_date_sent: 1694784754, last_message_user_id: 10551474, photo: https://main-court-demo.s3.amazonaws.com/images/User/User.png, user_id: 10878093, xmpp_room_jid: null, unread_messages_count: 0, name: Sneh Shah, type: 3, description: null, occupants_count: 2, occupants_ids: [10551474, 10878093], pinned_messages_ids: [], admins_ids: [], data: null, last_message_status: sent, last_message_id: 65045cf2a52e6da31ef88ed3, is_e2ee: false, is_muted: false, id: null, created_at: 2023-09-15T12:27:52.000Z, updated_at: 2023-09-15T13:32:34.000Z}, {_id: 65045890bb652a002f066807, last_message: hh, last_message_date_sent: 1694784553, last_message_user_id: 10551474, photo: https://main-court-demo.s3.amazonaws.com/images/User/User.png, user_id: 10551474, xmpp_room_jid: null, unread_messages_count: 0, name: anu anu, type: 3, description: null, occupants_count: 2, occu
I/ViewRootImpl@a2977deMainActivity: ViewPostIme pointer 0
I/ViewRootImpl@a2977deMainActivity: ViewPostIme pointer 1
I/ViewRootImpl@a2977deMainActivity: ViewPostIme pointer 0
I/ViewRootImpl@a2977deMainActivity: ViewPostIme pointer 1
[GETX] GOING TO ROUTE /chat
I/flutter (17464): onInit
[GETX] Instance "ChatController" has been created with tag "ChatController"
I/flutter (17464): CB-SDK: : _initCubeChat
I/flutter (17464): CB-SDK: : [_initCubeChat] not authenticated
[GETX] Instance "ChatController" with tag "ChatController" has been initialized
I/flutter (17464): CB-SDK: : =========================================================
I/flutter (17464): === REQUEST ==== 25c26157-193b-4647-ac15-123848339b73 ===
I/flutter (17464): REQUEST
I/flutter (17464): GET https://api.connectycube.com/chat/Message?chat_dialog_id=65044dc8bb652a002f066110&limit=50&sort_desc=date_sent&date_sent%5Bgt%5D=0
I/flutter (17464): HEADERS
I/flutter (17464): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.8.0, CB-Token: B2DD223AA552DE03E3A4C7003C29118313DD}
I/flutter (17464): BODY
I/flutter (17464):
I/flutter (17464):
I/flutter (17464): CB-SDK: : =========================================================
I/flutter (17464): === REQUEST ==== ba3dd200-1a89-499a-9a5a-9fe1ffb97055 ===
I/flutter (17464): REQUEST
I/flutter (17464): GET https://api.connectycube.com/users/v2?id%5Bin%5D=10551474&id%5Bin%5D=10878093
I/flutter (17464): HEADERS
I/flutter (17464): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.8.0, CB-Token: B2DD223AA552DE03E3A4C7003C29118313DD}
I/flutter (17464): BODY
I/flutter (17464):
I/flutter (17464):
I/flutter (17464): Another exception was thrown: Invalid argument(s): No host specified in URI
[GETX] Info: _GetImpl Instance of '_GetImpl' #0 _HttpClient._openUrl (dart:_http/http_impl.dart:2751:9)
I don't know the structure of your app and I don't know your login flow for logging into the app with the saved user. In our sample, it uses in the case when the app starts and we have the saved user in the app. We save the user in the app immediately after first successful login to the app.
@TatankaConCube , CubeChatConnection.instance.isAuthenticated() i am getting this false in my chat page, while i am getting this issue
Future
if (unreadMessages.isNotEmpty) {
for (var cubeMessage in unreadMessages) {
cubeDialog.readMessage(cubeMessage);
}
unreadMessages.clear();
}
if (unsentMessages.isNotEmpty) {
for (var cubeMessage in unsentMessages) {
cubeDialog.sendMessage(cubeMessage);
}
unsentMessages.clear();
}
}
});
}
}
@TatankaConCube , let me know if any issue in above code
I can't see in your code the chat login flow. Did you do it on the previous screen? In your code you just initialize listeners.
void checkAndSetConnectyCubeState(AppLifecycleState state) async { log("Current app state: $state"); mainController.appState = state;
if (AppLifecycleState.paused == state) {
if (CubeChatConnection.instance.isAuthenticated()) {
CubeChatConnection.instance.markInactive();
}
} else if (AppLifecycleState.resumed == state) {
// just for an example user was saved in the local storage
CubeUser? user = SharedPref.getUser();
if (user != null) {
if (!CubeChatConnection.instance.isAuthenticated()) {
if (ChatLoginType.phone == SharedPref.getChatLoginType() || ChatLoginType.login == SharedPref.getChatLoginType()) {
if (CubeSessionManager.instance.isActiveSessionValid()) {
user.password = CubeSessionManager.instance.activeSession?.token;
} else {
var phoneAuthSession = await createPhoneAuthSession();
user.password = phoneAuthSession.token;
log('phoneAuthSession.token = ${phoneAuthSession.token}');
}
}
log('login richa = $user');
CubeChatConnection.instance.login(user);
} else {
log('markActive richa = $user');
CubeChatConnection.instance.markActive();
}
}
}
}
even in resume state CubeChatConnection.instance.login(user) gets called but again when i come to chat i get this error only
e previou
i have added that code in basecontroller and first screen of the app , do i have to add that in chat screen ?
do i have to add that in chat screen
no, I just wanted to know where do you did it
if (ChatLoginType.phone == SharedPref.getChatLoginType() || ChatLoginType.login == SharedPref.getChatLoginType()) {
if (CubeSessionManager.instance.isActiveSessionValid()) {
user.password = CubeSessionManager.instance.activeSession?.token;
} else {
var phoneAuthSession = await createPhoneAuthSession();
user.password = phoneAuthSession.token;
log('phoneAuthSession.token = ${phoneAuthSession.token}');
}
}
in this part when you don't have the valid session you will create the createPhoneAuthSession
but you need common session with the user if the ChatLoginType.login == SharedPref.getChatLoginType()
why do you check for a few types of login but create the PhoneAuthSession in any case?
ya ChatLoginType.login == SharedPref.getChatLoginType() this is not necesary but i havent also used this anywhere , my login time is ChatLoginType.phone only
but I don't find any API calls in your latest log related to the Phone Auth feature. how it can be? and in the latest log, I don't find the Forbidden. Need user.
error. how can it help to resolve your issue?
@TatankaConCube, "Check you set participant and login to the chat" I have handled this error with the below code. when i get this error on send message i check and do the below code.
Future
/// On Send Message Update UI And Send Message to ConnectyCube void onSendMessage(CubeMessage message) async { log("onSendMessage message= $message"); commentController.clear(); await cubeDialog.sendMessage(message).then((value) { message.senderId = cubeUser.id; addMessageToListView(message); listScrollController.animateTo(0.0, duration: const Duration(milliseconds: 300), curve: Curves.easeOut); if (cubeDialog.type == CubeDialogType.PRIVATE) { ChatManager.instance.sentMessagesController.add(message..dialogId = cubeDialog.dialogId); } }).onError((error, stackTrace) { log("onSendMessage error= $error");
bool isChatConnected = CubeChatConnection.instance.chatConnectionState == CubeChatConnectionState.Ready;
if (isChatConnected && CubeChatConnection.instance.currentUser != null) {
CubeChatConnection.instance.relogin();
}
showSnackBar(message: "Error: $error");
});
}
@richanshah is this issue still actual? please close it if the issue was resolved
I/flutter (28267): CB-SDK: : ========================================================= I/flutter (28267): === REQUEST ==== c54759ce-e44f-4dc6-9990-0d44ef9a3691 === I/flutter (28267): REQUEST I/flutter (28267): POST https://api.connectycube.com/chat/Dialog I/flutter (28267): HEADERS I/flutter (28267): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: FA1A336CD1F2244C369B15244FB8FCE528AE} I/flutter (28267): BODY I/flutter (28267): {"type":3,"occupants_ids":[10023181]} I/flutter (28267): I/flutter (28267): CB-SDK: : *** I/flutter (28267): * RESPONSE 403 c54759ce-e44f-4dc6-9990-0d44ef9a3691 *** I/flutter (28267): HEADERS I/flutter (28267): {connection: keep-alive, content-type: application/json; charset=utf-8, date: Thu, 17 Aug 2023 11:51:20 GMT, strict-transport-security: max-age=15768000; includeSubDomains, server: nginx/1.25.0, content-length: 45} I/flutter (28267): BODY I/flutter (28267): {"errors":{"base":["Forbidden. Need user."]}}