.NET client - wait for CB to be online


i have CB Community Edition 6.6 and .NET 6 client with SDK 3.

I have problems connecting to CB when CB is still offline(sometimes there is scenario, that servers are restarted and client is online before CB).

If that happens i’m getting exception “Bucket with name … does not exist or cannot be reached.” Even after CB is online connection is not restored.

How should i properly handle this situation ?

Thank you for your help.

Use waitUntilReady - Class Cluster | 3.4.0

There’s a bit more discussion in Couchbase server availability situation

1 Like

Thank you mreiche! Works perfectly…