I am trying to write a small ruby program to connect to couchbase server and create a document. I am able to connect to couchbase server but when I try to do a get/set/touch I get a timeout error - (Couchbase::Error::Timeout)
sample:
require 'rubygems’
require 'couchbase’
c = Couchbase.connect(:hostname=>‘localhost’,:port=>8091,:username => ‘Administrator’, :password=>‘password’, :bucket=>‘test’)
puts c.name
c.touch(“foo”)
c.disconnect
output:
test
load_couchbase.rb:10:in touch': failed to touch value (key="foo", error=0x17) (Couchbase::Error::Timeout) from load_couchbase.rb:10:in
'
Any clue to get past this error?
thanks.