tinode / tindroid

Tinode chat client application for Android
Apache License 2.0
347 stars 191 forks source link

W/Connection: Websocket error #120

Closed reBiocoder closed 2 years ago

reBiocoder commented 2 years ago

Describe the bug

W/Connection: Websocket error
    javax.net.ssl.SSLHandshakeException: Handshake failed
        at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:396)
        at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:629)
        at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:591)
        at org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:474)
        at java.lang.Thread.run(Thread.java:818)
     Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0xb384bd40: Failure in SSL library, usually a protocol error
    error:100bd10c:SSL routines:ssl3_get_record:WRONG_VERSION_NUMBER (external/boringssl/src/ssl/s3_pkt.c:311 0xa9a6b5d7:0x00000000)
        at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
        at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:324)
            ... 4 more

To Reproduce Steps to reproduce the behavior:

  1. open tinode backend, grpc on 127.0.0.1:16060
  2. username: 'alice', passward:'alice123'
  3. See error

Expected behavior

W/Connection: Websocket error
    javax.net.ssl.SSLHandshakeException: Handshake failed
        at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:396)
        at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:629)
        at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:591)
        at org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:474)
        at java.lang.Thread.run(Thread.java:818)
     Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x9b03a280: Failure in SSL library, usually a protocol error
    error:100bd10c:SSL routines:ssl3_get_record:WRONG_VERSION_NUMBER (external/boringssl/src/ssl/s3_pkt.c:311 0xa9a6b5d7:0x00000000)
        at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
        at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:324)
            ... 4 more
D/Tinode: Disconnected for 'Handshake failed' (code: 1, remote: false);
W/Connection: Websocket error
    javax.net.ssl.SSLHandshakeException: Handshake failed
        at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:396)
        at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:629)
        at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:591)
        at org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:474)
        at java.lang.Thread.run(Thread.java:818)
     Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0xb384a1c0: Failure in SSL library, usually a protocol error
    error:100bd10c:SSL routines:ssl3_get_record:WRONG_VERSION_NUMBER (external/boringssl/src/ssl/s3_pkt.c:311 0xa9a6b5d7:0x00000000)
        at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
        at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:324)
            ... 4 more

Screenshots image image

Tindroid (please complete the following information):

Server

Additional context Add any other context about the problem here. Attach server-side and client-side logs (logcat).

or-else commented 2 years ago

Please provide all requested information.

reBiocoder commented 2 years ago

Please provide all requested information.

thanks for your reply! I'll rephrase the question.

or-else commented 2 years ago

It's been 2 months without updates. I assume it's either resolved or no longer relevant. Closing.