Golang Couchbase integration throwing errors on setting/getting

153 Views Asked by At

Implementing https://github.com/couchbase/go-couchbase

However - no matter what I do - with various types of connections - I get errors when setting/getting keys.

vbmap smaller than vbucket list: 18119 vs. []

Code Example below (have tried many variations)

b, err := couchbase.GetBucket("http://somebucket:somepassword@myserver:8091/",
       "default", "somebucket")
mf(err,"con")

err = b.Set("somekey", 0, map[string]interface{}{"x": 1})
  mf(err, "set")
1

There are 1 best solutions below

2
On BEST ANSWER

You are probably trying to connect to a memcached bucket. go-couchbase doesn't support buckets of type memcached.