You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
For some reason when I try to access account.document() the error I am getting is: AttributeError: 'WorkflowsCloudant' object has no attribute 'document'
and I can then read and write individual docs to the db without a problem. However when I try to iterate over all docs with db.all_docs()
I get the same error: {u'reason': u'_reader access is required for this request', u'error': u'unauthorized'}
Activity
garbados commentedon Jun 5, 2014
Let me know if that doesn't work :)
dennismonsewicz commentedon Jun 10, 2014
The code seems to be working, but when I try to iterate over all the documents in the DB, I am getting this error:
{u'reason': u'_reader access is required for this request', u'error': u'unauthorized'}The API key I am using is setup to be an admin on the account
dennismonsewicz commentedon Jun 10, 2014
Another question, I am using the library to incorporate with a CRUD controller in a Flask app...
I am attempting to DRY up some of my code and here is what I have so far:
For some reason when I try to access
account.document()the error I am getting is:AttributeError: 'WorkflowsCloudant' object has no attribute 'document'Sorry for my ignorance, I am a Python newb
janakmayer commentedon Mar 19, 2015
I have the same issue as dennismonsewicz - I can authenticate using
and I can then read and write individual docs to the db without a problem. However when I try to iterate over all docs with
db.all_docs()I get the same error:
{u'reason': u'_reader access is required for this request', u'error': u'unauthorized'}janakmayer commentedon Mar 19, 2015
I just created a pull request to fix this: #53
In the mean time, a solution that works is to pass the authorization tuple directly into the all_docs() method:
ayushidalmia commentedon Aug 22, 2016
On line:
account = cloudant.Account(USERNAME, auth=(API_KEY, API_SECRET))
I get the error:
AttributeError: 'module' object has no attribute 'Account'
TheBatAss commentedon Mar 30, 2017
I get the same error as @ayushidalmia, anyone resolved this?
rajlath commentedon Jun 29, 2017
try this
from cloudant.client import Cloudant
account = Cloudant(USERNAME, auth=(API_KEY, API_SECRET)