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

ssl error #205

Open
danseo-reisys opened this issue Aug 1, 2022 · 0 comments
Open

ssl error #205

danseo-reisys opened this issue Aug 1, 2022 · 0 comments

Comments

@danseo-reisys
Copy link

danseo-reisys commented Aug 1, 2022

--insecure does not work.

ckanapi version 4.7

sample command

ckanapi load organizations -I organizations.jsonl.gz -z -p 10 -r https://internal-url -a mykey --insecure

error====
Traceback (most recent call last):
File "/usr/local/bin/ckanapi", line 11, in
load_entry_point('ckanapi==4.7', 'console_scripts', 'ckanapi')()
File "/usr/local/lib/python3.6/site-packages/ckanapi/cli/main.py", line 147, in main
return load_things(ckan, thing[0], arguments)
File "/usr/local/lib/python3.6/site-packages/ckanapi/cli/load.py", line 47, in load_things
return load_things_worker(ckan, thing, arguments)
File "/usr/local/lib/python3.6/site-packages/ckanapi/cli/load.py", line 184, in load_things_worker
requests_kwargs=requests_kwargs)
File "/usr/local/lib/python3.6/site-packages/ckanapi/remoteckan.py", line 96, in call_action
status, response = self._request_fn(url, data, headers, files, requests_kwargs)
File "/usr/local/lib/python3.6/site-packages/ckanapi/remoteckan.py", line 101, in _request_fn
allow_redirects=False, **requests_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 517, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='xxxxxxxxxxxxxx', port=443): Max retries exceeded with url: /api/action/organization_show (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)'),))

any help appreciated

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

1 participant