Hi,
I got the following error with simple two lines of code. What am I doing it wrong?
var cluster = await Cluster.ConnectAsync("couchbase://localhost", "username", "password");
var buckets = await cluster.Buckets.GetAllBucketsAsync();
But when I change from GetAllBucketsAsync()
to query, it works perfectly.
var queryResult = await cluster.QueryAsync<dynamic>("select \"Hello World\" as greeting", new Couchbase.Query.QueryOptions());
Error:
Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'value')
at Newtonsoft.Json.Utilities.ValidationUtils.ArgumentNotNull(Object value, String parameterName)
at Newtonsoft.Json.Linq.Extensions.Value[T,U](IEnumerable`1 value)
at Newtonsoft.Json.Linq.Extensions.Value[U](IEnumerable`1 value)
at Couchbase.Management.Buckets.BucketManager.GetBucketSettings(JToken json)
at Couchbase.Management.Buckets.BucketManager.GetAllBucketsAsync(GetAllBucketsOptions options)
at ConsoleApp.Program.Main(String[] args) in C:\AgodaGit\SEO\sitemap-generator\Agoda.Seo.SitemapGenerator\ConsoleApp\Program.cs:line 21
at ConsoleApp.Program.<Main>(String[] args)
Environment:
- .NET Core 5
- CouchbaseNetClient 3.1.3
- Couchbase Server community-6.6.0
- Runs on Docker (tried with Windows, same result error)