Inserting a traceback in _test_url:
except Exception:
import traceback
print(traceback.format_exc())
provides:
get_galaxy_connection: 1) key=7c53...
get_galaxy_connection: url=http://127.0.0.1:8080
_test_url: url=%s obj=%s http://127.0.0.1:8080 True
_test_url: obj branch: key=7c53..., gi=<bioblend.galaxy.objects.galaxy_instance.GalaxyInstance object at 0x74ba6c7254f0>
Traceback (most recent call last):
File "<ipython-input-4-85bc6f23efe6>", line 41, in _test_url
gi.histories.get(history_id)
File "/opt/conda/lib/python3.8/site-packages/bioblend/galaxy/objects/client.py", line 192, in get
return self._get_container(id_, wrappers.History)
File "/opt/conda/lib/python3.8/site-packages/bioblend/galaxy/objects/client.py", line 88, in _get_container
res = show_f(id_)
File "/opt/conda/lib/python3.8/site-packages/bioblend/galaxy/histories/__init__.py", line 188, in show_history
return self._get(id=history_id, contents=contents, params=params)
File "/opt/conda/lib/python3.8/site-packages/bioblend/galaxy/client.py", line 149, in _get
raise ConnectionError(msg, body=r.text,
bioblend.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8080):
Max retries exceeded with url: /api/histories/f597429621d6eb2b?key=7c53...
(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x74ba6c6eaf70>:
Failed to establish a new connection: [Errno 111] Connection refused')), 0 attempts left:
When I google for the HTTPConnection error, I see this (among other things) - whether or not it’s relevant:
Docker networking issues:
If running in a Docker container, ensure proper network configuration
so containers can communicate with each other, or try running with --net=host.