Hacking Life
Hacking Life

Reputation: 3373

Golang Couchbase integration throwing errors on setting/getting

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")

Upvotes: 0

Views: 163

Answers (1)

Manik Taneja
Manik Taneja

Reputation: 114

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

Upvotes: 1

Related Questions