bonepl / ChromaLeague

Java open-source Razer Chroma keyboard integration for League of Legends
GNU General Public License v3.0
58 stars 25 forks source link

Handshake issue. #109

Closed GrimsGift closed 3 years ago

GrimsGift commented 3 years ago

Unsure of what to do :/

19:28:24 [INFO] Started Chroma League, waiting for a game - press ENTER to exit 19:28:24 [SEVERE] Error while executing SDK Http request javax.net.ssl.SSLHandshakeException: The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12] at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131) at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.ja va:356) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.ja va:312) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.ja va:303) at java.base/sun.security.ssl.ServerHello$ServerHelloConsumer.onServerHe llo(ServerHello.java:975) at java.base/sun.security.ssl.ServerHello$ServerHelloConsumer.consume(Se rverHello.java:897) at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:396 ) at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext .java:480) at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext .java:458) at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext .java:199) at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:171)

    at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:14

98) at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocke tImpl.java:1404) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl .java:441) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl .java:412) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSock et(SSLConnectionSocketFactory.java:436) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSL ConnectionSocketFactory.java:384) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect (DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect( PoolingHttpClientConnectionManager.java:376) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClie ntExec.java:393) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec. java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java :186) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java :110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttp Client.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttp Client.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttp Client.java:108) at com.bonepl.razersdk.sdk.SdkRequestExecutor.execute(SdkRequestExecutor .java:31) at com.bonepl.razersdk.sdk.SdkRequestExecutor.executeRequest(SdkRequestE xecutor.java:23) at com.bonepl.razersdk.SdkConnectivityChecker.versionInfo(SdkConnectivit yChecker.java:25) at com.bonepl.razersdk.SdkConnectivityChecker.checkSdkConnectivity(SdkCo nnectivityChecker.java:19) at com.bonepl.chromaleague.tasks.SdkConnectivityCheckTask.run(SdkConnect ivityCheckTask.java:9) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledF utureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:831)

19:28:25 [INFO] Running ChromaLeague version 1.1.3 19:28:25 [INFO] Your ChromaLeague version is up to date!

bonepl commented 3 years ago

Hi, are you running latest Synapse? Can you share what does the page https://chromasdk.io:54236/razer/chromasdk show?

MorgothDL commented 3 years ago

Hi, Just want to say I am having this exact same issue and can't get this to work. I have checked and the SDK server is running in services. The link you asked the OP to try is not coming up with anything for me.

bonepl commented 3 years ago

Hey guys, can you confirm that you're running CL by executing 'chroma-league.bat' file?

If yes, can you try running this one: chroma-league-tls1.zip

Just copy it to the same location as original 'chroma-league.bat' and let me know if that changed anything.

MorgothDL commented 3 years ago

Hi, Just gave this a quick try and I am getting this error message now:

22:37:02 [INFO] Started Chroma League, waiting for a game - press ENTER to exit 22:37:02 [SEVERE] Error while executing SDK Http request javax.net.ssl.SSLException: Connection reset at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:127) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:369) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:312) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:307) at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:144) at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1498) at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1404) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:441) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:412) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) at com.bonepl.razersdk.sdk.SdkRequestExecutor.execute(SdkRequestExecutor.java:31) at com.bonepl.razersdk.sdk.SdkRequestExecutor.executeRequest(SdkRequestExecutor.java:23) at com.bonepl.razersdk.SdkConnectivityChecker.versionInfo(SdkConnectivityChecker.java:25) at com.bonepl.razersdk.SdkConnectivityChecker.checkSdkConnectivity(SdkConnectivityChecker.java:19) at com.bonepl.chromaleague.tasks.SdkConnectivityCheckTask.run(SdkConnectivityCheckTask.java:9) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:831) Suppressed: java.net.SocketException: Connection reset by peer at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:420) at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440) at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:826) at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1045) at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:82) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:400) ... 29 more Caused by: java.net.SocketException: Connection reset at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:323) at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:350) at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:803) at java.base/java.net.Socket$SocketInputStream.read(Socket.java:976) at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:478) at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472) at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160) at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:110) ... 26 more

22:37:03 [INFO] Running ChromaLeague version 1.1.3 22:37:03 [INFO] Your ChromaLeague version is up to date!

bonepl commented 3 years ago

This is a different error as currently connection to local Chroma SDK is getting reset. Can you uninstall Synapse completely, restart PC, then install it again?

This page should start giving some response when queried in browser: https://chromasdk.io:54236/razer/chromasdk

Do you have any antivirus/firewall software that could be denying this connection?

MorgothDL commented 3 years ago

Hi I tried what you suggested and also disabled both antivirus and firewall software but still no joy on that web page. Any other ideas?

bonepl commented 3 years ago

How about this address? http://localhost:54235/razer/chromasdk Does it return anything?

MorgothDL commented 3 years ago

Hi that works, I get : {"core":"3.22.01","device":"3.22.00","version":"3.22.01"}

bonepl commented 3 years ago

ok, I will prepare a patch for that and I'll ask you to verify that, but I need few days for that (health issues :( ). I'll keep you posted.

MorgothDL commented 3 years ago

Thank you very much and no problem, happy to test. There is no rush and thanks for working on this!

bonepl commented 3 years ago

Hey man, can you try if this version of ChromaLeague works for you? https://mega.nz/file/DsAyiZLA#OCsD4gvvvOMo2ONt2rGXkuIvlZfnD8Ps6p1yGts6-v8

MorgothDL commented 3 years ago

finally had a chance to test this and this works perfectly now, thanks very much!

bonepl commented 3 years ago

Okay, good to hear, I will merge this to master and release with new version of CL. Thanks for testing!