Details
-
Bug
-
Resolution: Unresolved
-
Critical
-
3.0.2
-
None
-
None
-
1
-
SDK46: TTL Imp., Bdura, Docs, SDK48: FTS Score/Incl, Docs., SDK51: FLEpt1, Txns Test Compl, SDK2: FLEpt2, TxnsTest, SDK4: 3.1GA,Ruby3.1,TxnTst,FLE
Description
The bucket does exist, but if I do not have a config likeā¦
var config = new ClusterOptions() |
{
|
UserName = "busername", |
Password = "password", |
// IgnoreRemoteCertificateNameMismatch = true, |
EnableTls = true, |
// Logging = loggerFactory |
};
|
Program.cs(20,61): warning CS0169: The field 'Program.tsCollection' is never used [/Users/ingenthr/src/couchbase-net-testproj/couchbase-net-testproj.csproj]
|
Program.cs(21,24): warning CS0169: The field 'Program.loggerFactory' is never used [/Users/ingenthr/src/couchbase-net-testproj/couchbase-net-testproj.csproj]
|
Program.cs(19,25): warning CS0169: The field 'Program.tsBucket' is never used [/Users/ingenthr/src/couchbase-net-testproj/couchbase-net-testproj.csproj]
|
There was an exception: System.AggregateException: One or more errors occurred. (Bucket with name travel-sample does not exist)
|
---> Couchbase.Management.Buckets.BucketNotFoundException: Bucket with name travel-sample does not exist
|
at Couchbase.Core.ClusterContext.GetOrCreateBucketAsync(String name)
|
at Couchbase.Cluster.<>c__DisplayClass25_0.<<BucketAsync>b__0>d.MoveNext()
|
--- End of stack trace from previous location where exception was thrown ---
|
at couchbase_net_testproj.Program.Initialize() in /Users/ingenthr/src/couchbase-net-testproj/Program.cs:line 149
|
--- End of inner exception stack trace ---
|
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
|
at System.Threading.Tasks.Task.Wait()
|
at couchbase_net_testproj.Program.Main(String[] args) in /Users/ingenthr/src/couchbase-net-testproj/Program.cs:line 28
|
If I enable DEBUG logs, it is clear that it's because of the certificate mismatch as seen in the myapp-20200629.txt log.
A workaround is to set IgnoreRemoteCertificateNameMismatch as shown above commented out.