denshoproject / ddr-cmdln

Command-line tools for automating the Densho Digital Repository's various processes.
Other
0 stars 2 forks source link

binary delete results in failure message in webui (invalid url when deleting elestacsearch file record) #168

Open pkikawa opened 5 years ago

pkikawa commented 5 years ago
Traceback (most recent call last):
  File "/opt/ddr-local/venv/ddrlocal/local/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/opt/ddr-local/venv/ddrlocal/local/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "/opt/ddr-local/ddrlocal/webui/tasks/files.py", line 393, in delete_file
    ds.delete(file_.id)
  File "/opt/ddr-local/venv/ddrlocal/local/lib/python2.7/site-packages/ddr_cmdln-0.9.4b0-py2.7.egg/DDR/docstore.py", line 858, in delete
    get = requests.request('GET', url)
  File "/opt/ddr-local/venv/ddrlocal/local/lib/python2.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/opt/ddr-local/venv/ddrlocal/local/lib/python2.7/site-packages/requests/sessions.py", line 519, in request
    prep = self.prepare_request(req)
  File "/opt/ddr-local/venv/ddrlocal/local/lib/python2.7/site-packages/requests/sessions.py", line 462, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/opt/ddr-local/venv/ddrlocal/local/lib/python2.7/site-packages/requests/models.py", line 313, in prepare
    self.prepare_url(url, params)
  File "/opt/ddr-local/venv/ddrlocal/local/lib/python2.7/site-packages/requests/models.py", line 381, in prepare_url
    raise InvalidURL(*e.args)
InvalidURL: Failed to parse: http://[{'host': '10.0.1.127', 'port': '9200'}]/ddrlocal/file/ddr-testing-40295-1-mezzanine-de47cb83a4/

traceback from webui when deleting a binary. binary file iteslf is deleted, its just the ES record that cannot