Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

cas error?

3 replies [Last post]
  • Login or register to post comments
Mon, 02/27/2012 - 15:34
byzhang
Offline
Joined: 02/25/2012
Groups: None

I'm getting this error for cas (using couchbase 1.8 and the python client from github):
>>> c.client.get('test')
(1, 26, '1')
>>> c.client.cas('test', 0, 1, '1', '1')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.6/site-packages/couchbase/client.py", line 227, in cas
return self.mc_client.cas(key, exp, flags, oldVal, val)
File "/usr/local/lib/python2.6/site-packages/couchbase/couchbaseclient.py", line 861, in cas
return self._respond(item, event)
File "/usr/local/lib/python2.6/site-packages/couchbase/couchbaseclient.py", line 832, in _respond
raise item["response"]["error"]
struct.error: cannot convert argument to long
or
>>> c.client.cas('test', 0, 1, 1, '1')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.6/site-packages/couchbase/client.py", line 227, in cas
return self.mc_client.cas(key, exp, flags, oldVal, val)
File "/usr/local/lib/python2.6/site-packages/couchbase/couchbaseclient.py", line 861, in cas
return self._respond(item, event)
File "/usr/local/lib/python2.6/site-packages/couchbase/couchbaseclient.py", line 832, in _respond
raise item["response"]["error"]
couchbase.couchbaseclient.MemcachedError: Memcached error #2: Data exists for key

Top
  • Login or register to post comments
Fri, 03/02/2012 - 20:44
mikew
Offline
Joined: 03/14/2011
Groups:

I haven't tried to reproduce this issue yet, but I filed a bug for your issue here so you can track it.

http://www.couchbase.com/issues/browse/PYCBC-23

Top
  • Login or register to post comments
Mon, 06/18/2012 - 12:25
fm
Offline
Joined: 06/18/2012
Groups: None

Is there a work around for this issue? I can't use cas with python SDK.
Thanks,

Top
  • Login or register to post comments
Fri, 06/22/2012 - 10:46
mikew
Offline
Joined: 03/14/2011
Groups:

There isn't that I know of, but I will email our python developer and have him comment here if he can think of one. Also, sorry for the delay in my response.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker