dynamist / phabfive

A command line tool to interact with Phabricator
Apache License 2.0
4 stars 2 forks source link

504 Exception on unreachable server #27

Open Grokzen opened 4 years ago

Grokzen commented 4 years ago

Environment

Steps to Reproduce

  1. Setup a phabricator instance
  2. Make the instance not accessible or connectable (Shut it down for example)
  3. Run phabfive K32
$ phabfive K32
Traceback (most recent call last):
  File "/home/nn/profile/bin/phabfive", line 11, in <module>
    load_entry_point('phabfive', 'console_scripts', 'phabfive')()
  File "/home/nn/code/phabfive-github/phabfive/cli.py", line 184, in cli_entrypoint
    sys.exit(run(cli_args, sub_args))
  File "/home/nn/code/phabfive-github/phabfive/cli.py", line 139, in run
    p = passphrase.Passphrase()
  File "/home/nn/code/phabfive-github/phabfive/passphrase.py", line 22, in __init__
    super(Passphrase, self).__init__()
  File "/home/nn/code/phabfive-github/phabfive/core.py", line 77, in __init__
    self.verify_connection()
  File "/home/nn/code/phabfive-github/phabfive/core.py", line 83, in verify_connection
    result = self.phab.user.whoami()
  File "/home/nn/.virtualenvs/phabfive-kOPdHCq0/lib/python3.6/site-packages/phabricator/__init__.py", line 248, in __call__
    return self._request(**kwargs)
  File "/home/nn/.virtualenvs/phabfive-kOPdHCq0/lib/python3.6/site-packages/phabricator/__init__.py", line 314, in _request
    'Bad response status: {0}'.format(response.status)
http.client.HTTPException: Bad response status: 504