Note that there are some explanatory texts on larger screens.

plurals
  1. POHttpLib2 throws error when trying to do a request to couchdb
    primarykey
    data
    text
    <p>I'm building an application in Python2.6 that needs to get data from CouchDb. I'm using <a href="http://code.google.com/p/couchdb-python/" rel="nofollow">CouchDB-0.8-py2.6</a> to connect to the database. I'm using this code:</p> <pre><code>import couchdb server = couchdb.Server(url='http://localhost:5984/', full_commit=True, session=None) db = server['databaseName'] doc = db['docId'] value = doc['value'] print(value) </code></pre> <p>On my local machine (OSX) the code runs perfectly, but when I'm trying to run it on a Debian server, I get the following error:</p> <pre><code>File "/usr/local/lib/python2.6/dist-packages/CouchDB-0.7dev_r199-py2.6.egg/couchdb/client.py", line 165, in __getitem__ db.resource.head() # actually make a request to the database File "/usr/local/lib/python2.6/dist-packages/CouchDB-0.7dev_r199-py2.6.egg/couchdb/client.py", line 977, in head return self._request('HEAD', path, headers=headers, **params) File "/usr/local/lib/python2.6/dist-packages/CouchDB-0.7dev_r199-py2.6.egg/couchdb/client.py", line 1010, in _request resp, data = _make_request() File "/usr/local/lib/python2.6/dist-packages/CouchDB-0.7dev_r199-py2.6.egg/couchdb/client.py", line 1005, in _make_request body=body, headers=headers) File "/usr/local/lib/python2.6/dist-packages/httplib2-0.6.0-py2.6.egg/httplib2/__init__.py", line 1025, in request cached_value = self.cache.get(cachekey) AttributeError: 'bool' object has no attribute 'get' </code></pre> <p>I've tried to Google this numerous times and no-one seems to have the same error. Does anyone have an idea what I'm doing wrong here?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload