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

"'Cannot find collection {name}'" when getting default collection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Blocker
    • None
    • 3.0.0-beta.2
    • library
    • None
    • .NET Core 3.0.1

    Description

      Using the following sample code against Couchbase Server 6.5 beta 2 docker image: 
       

                  var connString = "couchbase://127.0.0.1";
                  var options = new ClusterOptions();            options.WithBucket("bugtest")            .WithCredentials("Administrator", "danger")            .WithServers(connString);
                  var cluster = new Cluster(connString, options);
                  var bucketResult = cluster.BucketAsync("bugtest");
                  bucketResult.Wait();
                  var collection = bucketResult.Result.DefaultCollection();
      

       

      I get the error in the subject: 

       

      An unhandled exception of type 'Couchbase.KeyValue.CollectionOutdatedException' occurred in Couchbase.NetClient.dll: 'Cannot find collection {name}'

       

      The bucket "bugtest" exists on my cluster. This worked in 3.0.0-beta1. 

      Attachments

        Issue Links

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

          Activity

            People

              jmorris Jeff Morris
              alexcavnar Alex Cavnar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty