not-ilinked / Anarchy

The superior Discord API wrapper

Home Page:https://anarchyteam.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TLS Handshake Error when Logging in

Craftzman7 opened this issue · comments

5/16/2022 6:26:26 PM|Fatal|WebSocket.connect|WebSocketSharp.WebSocketException: An error has occurred during a TLS handshake.
                            ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
                            ---> Interop+OpenSsl+SslException: SSL Handshake failed with OpenSSL error - SSL_ERROR_SSL.
                            ---> Interop+Crypto+OpenSslCryptographicException: error:141E70BF:SSL routines:tls_construct_client_hello:no protocols available
                              --- End of inner exception stack trace ---
                              at Interop.OpenSsl.DoSslHandshake(SafeSslHandle context, ReadOnlySpan`1 input, Byte[]& sendBuf, Int32& sendCount)
                              at System.Net.Security.SslStreamPal.HandshakeInternal(SafeFreeCredentials credential, SafeDeleteSslContext& context, ReadOnlySpan`1 inputBuffer, Byte[]& outputBuffer, SslAuthenticationOptions sslAuthenticationOptions)
                              --- End of inner exception stack trace ---
                              at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
                              at System.Net.Security.SslStream.AuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions)
                              at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)
                              at WebSocketSharp.WebSocket.setClientStream()
                              --- End of inner exception stack trace ---
                              at WebSocketSharp.WebSocket.setClientStream()
                              at WebSocketSharp.WebSocket.doHandshake()
                              at WebSocketSharp.WebSocket.connect()

Getting this error when using DiscordSocketClient.Login(). Running the latest version from Nuget.

Linux issue.

commented

Linux issue.

💀