ConnectyCube / android-messenger-app

Chat and voice / video calling app using ConnectyCube
https://connectycube.com
Apache License 2.0
51 stars 23 forks source link

No response received within reply timeout. #54

Closed mwaked closed 4 years ago

mwaked commented 4 years ago

Hello, The call is working perfect most of time but some times when i try to login to connctycube it give me this error and the internet is very good! Error while login to chat, error = No response received within reply timeout. Timeout was 40000ms (~40s). While waiting for stream compression feature

 fun initChatConfiguration() {
        ConnectycubeSettings.getInstance().logLevel = LogLevel.DEBUG
        ConnectycubeChatService.setDebugEnabled(true)
        ConnectycubeChatService.setDefaultPacketReplyTimeout(40000)
        ConnectycubeChatService.setDefaultConnectionTimeout(40000)
        ConnectycubeChatService.getInstance().setUseStreamManagement(true)
        RTCConfig.setStatsReportInterval(5)

        val builder = TcpConfigurationBuilder()
            .setAllowListenNetwork(true)
            .setUseStreamManagement(true)

        ConnectycubeChatService.setConnectionFabric(TcpChatConnectionFabric(builder.apply { socketTimeout = 0 }))

    }
TatankaConCube commented 4 years ago

Are you using shared server? Or own instance? How often do you get this error? Yesterday we updated our shared chat server, may bee your issue related with this process?

mwaked commented 4 years ago

@TatankaConCube Yes i using shared server, I get this error today.

mwaked commented 4 years ago

@TatankaConCube Please can you help me in that: it's give me this error:

"Error while login to chat, error = No response received within reply timeout. Timeout was 40000ms (~40s). While waiting for establishing TLS"

and i try to login direct after that error happened it's give me another error:

"Error while login to chat, error = You have already logged in chat"

but it dos't happens all time , it's only sometimes and if i close the app and open it again it's not happen!

marab2 commented 4 years ago

Hi Tan, Your contribution to get this done is really appreciated.

TatankaConCube commented 4 years ago

@mwaked did you provide full configs for chat connection? Please provide us full logs from start app to getting this errors when it happens. It will help us investigate possible issues on chat-server. Additionally check your internet connection during getting this error. May bee you use some firewalls or vpn or something like this?

TatankaConCube commented 4 years ago

Closed. There was no activity for a long time.