0

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")
Hacking Life
  • 3,335
  • 2
  • 19
  • 20

1 Answers1

1

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

Manik Taneja
  • 114
  • 1
  • 8
  • Yes I was trying to connect to a memcached bucket. That's unfortunate it's not supported - Thanks for the answer – Hacking Life Mar 18 '15 at 15:32
  • 1
    You could try with using the stubs in couchbase/gomemcached and see if that might work for you. Set the vbucket number to 0 in all your API calls. – Manik Taneja Mar 25 '15 at 07:27