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

Bucket Manager - GetAllBucketsAsync throws error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.7
    • None
    • None
    • None
    • macos, visual studio
    • 1

    Description

      The following code should return back all buckets but it fails for 

       

      System.OverflowException 

      "Value was either too large or too small for an Int32."

      static async Task Main(string[] args)
      {

           var cluster = await Cluster.ConnectAsync("couchbase://localhost", "Administrator",   "password");
           var bucketManager = cluster.Buckets;

           var buckets = await bucketManager.GetAllBucketsAsync();

            foreach (var bucket in buckets)
           

      {            Console.WriteLine(bucket.Key + " " + bucket.Value);       }

       

            Console.Read();
      }

      Attachments

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

        Activity

          People

            arun.vijayraghavan Arun Vijayraghavan (Inactive)
            arun.vijayraghavan Arun Vijayraghavan (Inactive)
            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