Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

[Bug] simplejson.decoder.JSONDecodeError in Python SDK

No replies
  • Login or register to post comments
Wed, 03/06/2013 - 08:09
evanescent85
Offline
Joined: 03/06/2013
Groups: None

First,

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchbase/client.py", line 59, in __init__
config = requests.get(server_config_uri).json()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/models.py", line 604, in json
return json.loads(self.text or self.content)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/simplejson/__init__.py", line 451, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/simplejson/decoder.py", line 406, in decode
obj, end = self.raw_decode(s)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/simplejson/decoder.py", line 426, in raw_decode
raise JSONDecodeError("No JSON object could be decoded", s, idx)
simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)

-- client.py

line 59:
config = requests.get(server_config_uri).json()
-->
config = requests.get(server_config_uri, auth=(username, password)).json()

Next,

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchbase/client.py", line 142, in __getitem__
return self.bucket(key)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchbase/client.py", line 98, in bucket
return Bucket(bucket_name, self)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchbase/client.py", line 196, in __init__
rest = server._rest()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchbase/client.py", line 154, in _rest
rest = RestConnection(server_info)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchbase/rest_client.py", line 177, in __init__
self.config = requests.get(server_config_uri).json()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/models.py", line 604, in json
return json.loads(self.text or self.content)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/simplejson/__init__.py", line 451, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/simplejson/decoder.py", line 406, in decode
obj, end = self.raw_decode(s)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/simplejson/decoder.py", line 426, in raw_decode
raise JSONDecodeError("No JSON object could be decoded", s, idx)
simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
Exception AttributeError: "'Bucket' object has no attribute 'mc_client'" in > ignored

-- rest_client.py

line 177:
self.config = requests.get(server_config_uri).json()
-->
self.config = requests.get(server_config_uri, auth=(self.username, self.password)).json()

Top
  • 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