Hey @ali.parsaei
There’s a long-standing issue with all the SDKs (this isn’t limited to Scala), in that before you can run a query, you must connect to a bucket. E.g. you add a cluster.bucket(“couchmusic2”) between the connect and the query, it should work. This is so the SDK has a connection it can send the request on.
Couchbase Server 6.5, just released in public beta, will have a new feature that will allow us to address this though. E.g. you won’t need to open the bucket to perform a query.