Closed rdhillbb closed 3 years ago
hello @rdhillbb, in this case, will be better, to provide for us logs from the flutter console.
One more thing - we don't use reconnection manager in our sample, but you can do this, it is easy, just apply solution from our documentation in your app. To listen the current chat connection state use connectionStateStream
from our SDK.
I will provide the logs. To be clear on the issue. The third or fourth attempt to sign back in results in the error message or hangs waiting for sign in process to finish.
Attached you will find the log.
On September 24, 2020 at 3:25 PM, TatankaConCube notifications@github.com wrote:
hello @rdhillbb, in this case, will be better, to provide for us logs from the flutter console.
One more thing - we don't use reconnection manager in our sample, but you can do this, it is easy, just apply solution from our documentation in your app. To listen the current chat connection state use connectionStateStream from our SDK.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Launching lib/main.dart on RMX2061 in debug mode...
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
Connecting to VM Service at ws://127.0.0.1:40029/MM-juK2jilw=/ws
I/flutter ( 9836): OS android Processors:8 version: 2.9.2 (stable) (Wed Aug 26 12:44:28 2020 +0200) on "android_arm64"
I/p2p_call_sampl( 9836): ProcessProfilingInfo new_methods=596 is saved saved_to_disk=1 resolve_classes_delay=5000
D/ColorViewRootUtil( 9836): nav bar mode ignore false downX 567 downY 618 mScreenHeight 2400 mScreenWidth 1080 mStatusBarHeight 54 globalScale 1.125 nav mode 0 rotation 0 event MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=567.0, y[0]=618.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=106253, downTime=106253, deviceId=4, source=0x1002, displayId=0 }
I/flutter ( 9836): CB-SDK: : =========================================================
I/flutter ( 9836): === REQUEST ==== 748e6a74-3c4c-4cac-bd84-a038d72ca6f8 ===
I/flutter ( 9836): REQUEST
I/flutter ( 9836): POST https://api.connectycube.com/session
I/flutter ( 9836): HEADERS
I/flutter ( 9836): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 0.4.0, CB-Token: }
I/flutter ( 9836): BODY
I/flutter ( 9836): {"application_id":"3050","auth_key":"TGqnHW8YqVSwMfN","nonce":"3179859887","timestamp":"1600942682","signature":"daa60cb6a23ce250d54f70ab6083aea4eaa22be1","user":{"login":"rdhill","password":"qwerty1234"}}
I/flutter ( 9836):
I/flutter ( 9836): CB-SDK: : ***
I/flutter ( 9836): * RESPONSE 201 748e6a74-3c4c-4cac-bd84-a038d72ca6f8 *
I/flutter ( 9836): HEADERS
I/flutter ( 9836): {connection: keep-alive, cache-control: max-age=0, private, must-revalidate, set-cookie: _mkra_ctxt=d130865bb44c90955270a9b2961bbc62--201; path=/; max-age=5; HttpOnly; secure, status: 201 Created, transfer-encoding: chunked, date: Thu, 24 Sep 2020 10:18:05 GMT, access-control-allow-origin: *, strict-transport-security: max-age=31536000,max-age=15768000;, content-type: application/json; charset=utf-8, x-xss-protection: 1; mode=block, server: nginx/1.16.1, x-request-id: 4b16b343-87f0-4125-856f-317d90cc05f3, cb-token-expirationdate: 2020-09-24 12:18:05 UTC, connectycube-rest-api-version: 0.1.1, x-runtime: 0.048826, etag: W/"7e65564ea51deb3b465be0b8d075742b", x-frame-options: SAMEORIGIN, x-content-type-options: nosniff}
I/flutter ( 9836): BODY
I/flutter ( 9836): {"session":{"id":17432482,"user_id":1754075,"application_id":3050,"nonce":3179859887,"token":"df4ffa2f065c97df3002ed4bcbc9a7078b000bea","ts":1600942682,"created_at":"2020-09-24T10:18:05Z","updated_at":"2020-09-24T10:18:05Z","user":{"id":1754075,"full_name":"Randolph Hill","email":"rdhill@fattree.io","login":"rdhill","phone":"+6583286705","website":null,"created_at":"2020-08-07T13:21:56Z","updated_at":"2020-09-24T10:18:05Z","last_request_at":"2020-09-24T10:18:05Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":"","avatar":"","user_tags":"XDOC143X"}}}
I/flutter ( 9836):
I/flutter ( 9836): sending: <?xml version='1.0'?>
I/flutter ( 9836): <stream:stream xmlns='jabber:client' version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
I/flutter ( 9836): to='chat.connectycube.com'
I/flutter ( 9836): xml:lang='en'
I/flutter ( 9836): >
I/flutter ( 9836): State: XmppConnectionState.SocketOpening
I/flutter ( 9836): CB-SDK: CubeChatConnection: Chat connection SocketOpening
I/flutter ( 9836): response:
hello @rdhillbb, I didn't found strange behavior in the log, can you, please, provide the log, which contains errors or wrong behavior? Please, don't accept any filters for logs.
I will send logs tomorrow. I am finishing up another section of the application today.
On September 28, 2020 at 5:35 PM, TatankaConCube notifications@github.com wrote:
hello @rdhillbb, I didn't found strange behavior in the log, can you, please, provide the log, which contains errors or wrong behavior? Please, don't accept any filters for logs.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
here is the log file. Check out line 1889 to 1901.
I see the following:
1888 I/flutter (13394): response:
thank you for your data, we are investigating this issue
I tried to reproduce your issue on our sample but without success. I did all steps about 10 times but without success.
But in your logs I found strange behavior - after logout from REST you didn't do login to the REST before the second (and next too) login to the chat. And after one logout from the REST you did it again and got 403 error (it is expected because the session is already without user).
Please check your code according to my notes.
I will be revisiting this issue next week. Monday. I will get back to you then. Cheers
I am closing this issue. I am transitioning to Agora.io for P2P video.
Platform (use [x]) [X ] Android [ ] iOS
Device info Manufacture: RealMe Model: RealMe Plus 6 RMX2061 OS version: Android 10
Describe the bug: After about three hours trying to figure out my code having this issue. I went and tried the sample p2p app. I was able to reproduce the same issue.
You can use your sample p2p app to reproduce. While testing my app with repeated sigins/signoff and video session, one phone could no longer sign in.
"Error Message Login Error Something went wrong during login to Connecty Cube." You can reproduce using the p2p sample app to reproduce.
Steps to Reproduce:
Take two pones and sign in with different IDs.
Phone calls A Phone B
Phone B accepts the call.
Phone B terminates the call after 5 seconds.
Sign Out Phone A
Sign in on Phone A
Go TO 2 Phone may ceses to login after 3 or 4 attempts. The following error message is displayed: "Error Message Login Error Something went wrong during login to Connecty Cube."
Logs:
or Gist log
Actual result:
Expected behavior:
Additional info Add any other context about the problem here.