Create memcached bucket fails from SDK 3.0.1

Trying to create a bucket through the BucketManager API. It works if BucketType is Couchbase, but fails with 400 (Bad request) when bucket type is Memcached.

public Task CreateBucketAsync()
{
    var bucketSettings = new BucketSettings
    {
        BucketType = BucketType.Memcached,
        Name = "Test",
        NumReplicas = 0,
        RamQuotaMB = 100
    };

    return cluster.Buckets.CreateBucketAsync(bucketSettings);
}

.NET SDK 3.0.1
Couchbase Server CE 6.5.1

I clone the code and found the issue. I have created a pull request for the change: https://github.com/couchbase/couchbase-net-client/pull/99

1 Like