Failed to get query provider: not connected to cluster

Hi @RezaOptic! Look at Problem with bucketManager.CreateBucket - #5 by chvck
Connection is async so cluster.WaitUntilReady(2*time.Second, nil) before any operation on the cluster (e.g. a bucket selection) may help.