Forbidden error raise (403) #3556
Unanswered
othmanechentouf
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I'm new to couchdb and I'm trying to connect to a remote server to start retrieving and adding to a database within the server.
My code is pretty simple so far as I can't get far anymore as it raises an error through this code, the server uses a certificate and it is installed on my mac (I think the problem might be coming from that but I don't know how to fix it) :
`import couchdb
couchserver = couchdb.Server("https://%s:%[email protected]/" % (login, pwd))
couchserver.resource.session.disable_ssl_verification()
for dbname in couchserver:
--->print(dbname)`
The error I get :
~/miniconda3/lib/python3.8/site-packages/couchdb/http.py in request(self, method, url, body, headers, credentials, num_redirects)
419 raise Unauthorized(error)
420 elif status == 403:
--> 421 raise Forbidden(error)
422 elif status == 404:
423 raise ResourceNotFound(error)
Forbidden: b''
Beta Was this translation helpful? Give feedback.
All reactions