SSL issue by an upload with xloader
- Dominant language
- Python
- Stars
- 58
- Forks
- 67
- Avg merge
- 23h 3m
- Merged PRs (30d)
- 8
Description
Hi!
I am using CKAN 2.9.4 with ckanext-xloader.0.8.0. I have a productive CKAN instance with https.
I set ckanext.xloader.ssl_verify to False but I still get an SSLError when I try to upload a csv file:
```
Traceback (most recent call last):
File "/usr/lib/ckan/datapusher/lib/python3.8/site-packages/apscheduler/scheduler.py", line 512, in _run_job
retval = job.func(*job.args, **job.kwargs)
File "/usr/lib/ckan/datapusher/src/datapusher/datapusher/jobs.py", line 336, in push_to_datastore
resource = get_resource(resource_id, ckan_url, api_key)
File "/usr/lib/ckan/datapusher/src/datapusher/datapusher/jobs.py", line 282, in get_resource
r = requests.post(url,
File "/usr/lib/ckan/datapusher/lib/python3.8/site-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/lib/ckan/datapusher/lib/python3.8/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/ckan/datapusher/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/ckan/datapusher/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/ckan/datapusher/lib/python3.8/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='myckan.com', port=443): Max retries exceeded with url: /api/3/action/resource_show (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))
```
What could be wrong here?
Best regards
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with datapusher/jobs.py at get_resource and the requests.post call shown in the traceback, then trace how ckanext.xloader.ssl_verify is passed into the upload path. Reproduce the CSV upload with the stated CKAN 2.9.4 and xloader 0.8.0 configuration; done means identifying why the SSL setting is not applied or documenting the missing configuration needed to avoid the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100