adicu / adi-website

[DEPRECATED] The website for the Application Development Initiative, built on Eventum.
https://adicu.com
11 stars 15 forks source link

If Consul is missing, a helpful message should display #203

Closed schlosser closed 9 years ago

schlosser commented 9 years ago

Right now it's a connection error:

Traceback (most recent call last):
  File "run.py", line 3, in <module>
    app = create_app()
  File "/Users/dan/working/adi-website/app/__init__.py", line 42, in create_app
    from config import flask_config
  File "/Users/dan/working/adi-website/config/flask_config.py", line 58, in <module>
    _, consul_value = kv.get("adi-website/{}".format(consul_key))
  File "/Users/dan/working/adi-website/lib/python2.7/site-packages/consul/base.py", line 171, in get
    callback, '/v1/kv/%s' % key, params=params)
  File "/Users/dan/working/adi-website/lib/python2.7/site-packages/consul/std.py", line 30, in get
    return callback(self.response(requests.get(uri)))
  File "/Users/dan/working/adi-website/lib/python2.7/site-packages/requests/api.py", line 55, in get
    return request('get', url, **kwargs)
  File "/Users/dan/working/adi-website/lib/python2.7/site-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Users/dan/working/adi-website/lib/python2.7/site-packages/requests/sessions.py", line 456, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/dan/working/adi-website/lib/python2.7/site-packages/requests/sessions.py", line 559, in send
    r = adapter.send(request, **kwargs)
  File "/Users/dan/working/adi-website/lib/python2.7/site-packages/requests/adapters.py", line 375, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8500): Max retries exceeded with url: /v1/kv/adi-website/flask_host (Caused by <class 'socket.error'>: [Errno 61] Connection refused)