refinery-platform / django_docker_engine

Django app that manages the creation of, and proxies requests to, Docker containers.
MIT License
6 stars 2 forks source link

Noisy errors in tests #161

Open mccalluc opened 6 years ago

mccalluc commented 6 years ago

I've tried working with warnings, and redirecting errors to errout, but I'm still getting this when I run the tests.

ERROR:revproxy.view:HTTPConnectionPool(host='localhost', port=32959): Max retries exceeded with url: / (Caused by ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',)))
Traceback (most recent call last):
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/site-packages/urllib3/connectionpool.py", line 384, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/site-packages/urllib3/connectionpool.py", line 380, in _make_request
    httplib_response = conn.getresponse()
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/http/client.py", line 1331, in getresponse
    response.begin()
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/http/client.py", line 266, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/site-packages/revproxy/views.py", line 161, in _created_proxy_response
    preload_content=False)
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/site-packages/urllib3/poolmanager.py", line 322, in urlopen
    response = conn.urlopen(method, u.request_uri, **kw)
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/site-packages/urllib3/connectionpool.py", line 667, in urlopen
    **response_kw)
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/site-packages/urllib3/connectionpool.py", line 667, in urlopen
    **response_kw)
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/site-packages/urllib3/connectionpool.py", line 667, in urlopen
    **response_kw)
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/chuck/anaconda3/envs/django-docker-fix-dep/lib/python3.6/site-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))