Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting SSl Error When using ckanapi with https hosted ckan applications #142

Open
rp21buzz opened this issue Jul 18, 2019 · 2 comments
Open

Comments

@rp21buzz
Copy link

SSLError: HTTPSConnectionPool(host='qa-datacatalog.mhf.mhc', port=443): Max retries exceeded with url: /api/action/resource_show (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)'),))

As Stated in a solution in the issue ticket #51 -------- used request_kwargs={'verify':False} forcefully in ckan code file remoteCkan.py.

.action.<actual_action>()
This mode of accessing should be enhanced to also take in request_kwargs
for now only using call_action we can specify request_kwargs.

Does this request make sense

@guibos
Copy link

guibos commented Mar 23, 2020

I have the same issue. A possible solution:

import requests
from ckanapi import RemoteCKAN

session = requests.Session()
session.verify = False

demo = RemoteCKAN('your domain', session=session)

@rp21buzz
Copy link
Author

rp21buzz commented Apr 1, 2020

cool, this helps but still the action.() call upgrade will help in other scenarios too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants