C# Couchbase打开存储桶时出错-无法引导

C# Couchbase打开存储桶时出错-无法引导,c#,couchbase,C#,Couchbase,我正在尝试连接到我的couchbase服务器(Enterprise ver 4.6.2)并使用.Net SDK打开一个bucket,代码非常简单,但仍然无法工作: var cluster = new Cluster(new ClientConfiguration { Servers = new List<Uri> { new Uri("https://10.0.0.54:8091/") } });

我正在尝试连接到我的couchbase服务器(Enterprise ver 4.6.2)并使用.Net SDK打开一个bucket,代码非常简单,但仍然无法工作:

        var cluster = new Cluster(new ClientConfiguration
        {
            Servers = new List<Uri> { new Uri("https://10.0.0.54:8091/") }
        });

        try
        {
            var bucket = cluster.OpenBucket("default");
        }
        catch (Exception ex)
        {
            Console.WriteLine("Error getting bucket.");
            Console.WriteLine(ex.Message);
        }
堆栈跟踪

Couchbase.IO.Services.PooledIOService.CheckEnabledServerFeatures(IConnection connection)
   at Couchbase.IO.Services.PooledIOService..ctor(IConnectionPool connectionPool)
   at Couchbase.IO.IOServiceFactory.<>c__DisplayClass0_0.<GetFactory>b__0(IConnectionPool pool)
   at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig(String bucketName, String username, String password)
和堆栈跟踪:

   at Couchbase.Core.ClusterController.CreateBucket(String bucketName, String username, String password, IAuthenticator authenticator)
   at Couchbase.Core.ClusterController.CreateBucket(String bucketName, IAuthenticator authenticator)
   at Couchbase.Cluster.OpenBucket(String bucketname)
   at Couchbase.Program.Main(String[] args)

知道问题是什么吗?

我对社区版也有同样的问题。在我的例子中,在尝试访问默认值之前,我没有创建bucket。此外,如果您的服务器/群集或存储桶需要凭据,则还需要输入这些凭据。

公开所有必需的端口
docker run-d-p 8091-8096:8091-8096-p 11210:11210-p 11211:11211 couchbase

服务器是否监听
https://10.0.0.54:8091
?是的,它可以从浏览器中访问,只需要从代码中访问,而不是从代码中访问。@JosefBláha跟踪来自sdk的请求并检查响应代码(使用Fiddler)你成功地解决了这个问题吗?我也经历过同样的行为。。
Could not bootstrap - check inner exceptions for details.
   at Couchbase.Core.ClusterController.CreateBucket(String bucketName, String username, String password, IAuthenticator authenticator)
   at Couchbase.Core.ClusterController.CreateBucket(String bucketName, IAuthenticator authenticator)
   at Couchbase.Cluster.OpenBucket(String bucketname)
   at Couchbase.Program.Main(String[] args)