简体   繁体   English

连接期间 Couchbase 客户端 3.0 内的 NullReferenceException

[英]NullReferenceException inside Couchbase client 3.0 during connection

I am working on migration from .NET SDK 2.7 to .NET SDK 3.0.我正在从 .NET SDK 2.7 迁移到 .NET ZF20E3C5E54C0AB3D665D660B3F8 。 Couchbase server 6.0. Couchbase 服务器 6.0。 This code throws NullReferenceException .此代码抛出NullReferenceException I can't understand what I am doing wrong.我不明白我做错了什么。 I can't put the exception call stack.我无法放置异常调用堆栈。 The site tells me that I have too much code or exception should be marked as code.该网站告诉我,我有太多的代码或异常应该被标记为代码。

var options = new ClusterOptions()
    .WithConnectionString("http://192.168.1.120:8091") //Node's IP
    .WithCredentials("User", "Password")
    .WithBuckets("SomeBucket");
var cluster = await Cluster.ConnectAsync(options);

It was a problem in SDK and it was fixed in 3.0.2.这是 SDK 中的一个问题,在 3.0.2 中已修复。 But right now I am getting the same error on getting buckets.但是现在我在获取存储桶时遇到了同样的错误。 So need to wait for the new SDK version again:-)所以需要再次等待新的SDK版本:-)

Update更新

Some more details u can get here .你可以在这里获得更多细节。 Shortly.不久。 Remove the port and all will be more or less OK.删除端口,一切都会或多或少正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM