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

loads datasets hangs at the end #175

Open
frafra opened this issue Nov 18, 2020 · 0 comments
Open

loads datasets hangs at the end #175

frafra opened this issue Nov 18, 2020 · 0 comments

Comments

@frafra
Copy link
Contributor

frafra commented Nov 18, 2020

After every resource of the dataset is uploaded/updated, ckanapi waits for something forever.

Traceback (most recent call last):
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/bin/ckanapi", line 8, in <module>
    sys.exit(main())
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/lib/python3.8/site-packages/ckanapi/cli/main.py", line 137, in main
    return load_things(ckan, thing[0], arguments)
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/lib/python3.8/site-packages/ckanapi/cli/load.py", line 47, in load_things
    return load_things_worker(ckan, thing, arguments)
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/lib/python3.8/site-packages/ckanapi/cli/load.py", line 219, in load_things_worker
    _upload_resources(ckan,obj,arguments)
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/lib/python3.8/site-packages/ckanapi/cli/load.py", line 290, in _upload_resources
    f = requests.get(resource['url'],stream=True)
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/lib/python3.8/site-packages/requests/api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/lib/python3.8/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/home/frafra/.cache/pypoetry/virtualenvs/ckan-tools-Wy9USEi_-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib64/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/lib64/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib64/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib64/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib64/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib64/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
KeyboardInterrupt
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