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

beaglecli crashes immediately if it cannot connect to Beagle #6

Open
stevekm opened this issue Feb 12, 2020 · 0 comments
Open

beaglecli crashes immediately if it cannot connect to Beagle #6

stevekm opened this issue Feb 12, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@stevekm
Copy link
Member

stevekm commented Feb 12, 2020

beaglecli crashes immediately upon starting if it cannot connect to a Beagle instance. This prevents you from seeing the 'help' page with beaglecli -h;

$ beaglecli -h
Traceback (most recent call last):
  File "/home/kellys5/projects/beagle-dev/beagle-dev4/conda/lib/python3.7/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/home/kellys5/projects/beagle-dev/beagle-dev4/conda/lib/python3.7/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/home/kellys5/projects/beagle-dev/beagle-dev4/conda/lib/python3.7/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:
....
....

It would be more helpful to allow bealgecli to delay trying to establish a connection to a Beagle instance until it actually needs one, so you can at least see the 'help' page in offline mode.

@stevekm stevekm added the bug Something isn't working label Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant