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

Improve error message when /api/bootstrap request fails #6

Open
SpaceK33z opened this issue Nov 13, 2017 · 0 comments
Open

Improve error message when /api/bootstrap request fails #6

SpaceK33z opened this issue Nov 13, 2017 · 0 comments

Comments

@SpaceK33z
Copy link

Right now you get a long stack trace if the request to backend fails:

Traceback (most recent call last):
   File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
     timeout=timeout
   File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
     _stacktrace=sys.exc_info()[2])
   File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
     raise MaxRetryError(_pool, url, error or ResponseError(cause))
 urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='backend', port=8000): Max retries exceeded with url: /api/bootstrap/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc9fa8ebe48>: Failed to establish a new connection: [Errno 111] Connection refused',))

But a human error like "Request to http://localhost:8000/api/bootstrap failed" would suffice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant