Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2555

Memcached and SSL results in "The handshake failed due to an unexpected packet format."

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.2
    • None
    • None
    • 1

    Description

      System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
      ---> System.IO.IOException: The handshake failed due to an unexpected packet format.
      at System.Net.Security.SslStream.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
      at System.Net.Security.SslStream.PartialFrameCallback(AsyncProtocolRequest asyncRequest)
      — End of stack trace from previous location where exception was thrown —
      at System.Net.Security.SslStream.ThrowIfExceptional()
      at System.Net.Security.SslStream.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
      at System.Net.Security.SslStream.EndProcessAuthentication(IAsyncResult result)
      at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult)
      at System.Net.Security.SslStream.<>c.<AuthenticateAsClientAsync>b__65_1(IAsyncResult iar)
      at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
      — End of stack trace from previous location where exception was thrown —
      at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
      — End of inner exception stack trace —
      at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
      at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
      at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
      at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
      at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
      at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
      at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
      at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
      at Couchbase.Core.Configuration.Server.Streaming.HttpClusterMap.GetClusterMapAsync(String bucketName, HostEndpoint hostEndpoint, CancellationToken cancellationToken) in C:\code\couchbase-net-client\src\Couchbase\Core\Configuration\Server\Streaming\HttpClusterMap.cs:line 41
      at Couchbase.MemcachedBucket.BootstrapAsync(IClusterNode node) in C:\code\couchbase-net-client\src\Couchbase\MemcachedBucket.cs:line 118
      at Couchbase.Core.ClusterContext.CreateAndBootStrapBucketAsync(String name, HostEndpoint endpoint, BucketType type) in C:\code\couchbase-net-client\src\Couchbase\Core\ClusterContext.cs:line 342
      at Couchbase.Core.ClusterContext.CreateAndBootStrapBucketAsync(String name, HostEndpoint endpoint, BucketType type) in C:\code\couchbase-net-client\src\Couchbase\Core\ClusterContext.cs:line 353
      at Couchbase.Core.ClusterContext.GetOrCreateBucketAsync(String name) in C:\code\couchbase-net-client\src\Couchbase\Core\ClusterContext.cs:line 310

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          jmorris Jeff Morris added a comment - - edited

          Hi Richard, which branch?

          jmorris Jeff Morris added a comment - - edited Hi Richard, which branch?

          People

            jmorris Jeff Morris
            richard.ponton Richard Ponton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty