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

Cluster.Create Manager throws HTTP401 UnAuthorized ERROR

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.1.0
    • 2.0.0, 2.0.1, 2.0.3
    • library
    • .NET client Library 2.0.0

    Description

      I am trying to connect to couchbase cluster to create a new Bucket using ClusterManager.

      COuchbase Server: Version: 3.0.2-1603 Enterprise Edition (build-1603)
      Below is the code snippet in .NET SDK 2.0.

      var couchbaseInstances = new List<Uri>()

      { new Uri("http://localhost:8091/pools") }

      ;
      var config = new ClientConfiguration()
      {
      ViewRequestTimeout = 45000,
      Servers = couchbaseInstances,
      PoolConfiguration = new PoolConfiguration

      { MinSize = 10, MaxSize = 10 }

      };
      var cluster = new Cluster(config);
      var clusterManager = cluster.CreateManager(userName, password);
      var result = clusterManager.CreateBucket(bucketName);

      But I get 401 UnAuthorized exception. I used the same userid and password that I use to login to the Couchbase web console.

      Below is the forum link where I posted this question when I faced it for the first time.
      https://forums.couchbase.com/t/connecting-to-couchbase-cluster-401-unauthorized/3607

      Attachments

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

        Activity

          People

            jmorris Jeff Morris
            kris.smarty@gmail.com kris.smarty@gmail.com
            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