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

ConnectionError: HTTPSConnectionPool(host='none', port=443): Max retries exceeded with url: /api/v0/catalog/ (Caus... #3040

Open
sentry-io bot opened this issue Jul 9, 2020 · 0 comments
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Jul 9, 2020

A good fix for this would probably be to retry on a delay and log an error if we fail on too many retries.

Sentry Issue: DISCUSSIONS-2S0

gaierror: [Errno -2] Name or service not known
  File "urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):

NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ffa0d54a8>: Failed to establish a new connection: [Errno -2] Name or service not known
(3 additional frame(s) were not displayed)
...
  File "urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "urllib3/connectionpool.py", line 839, in _validate_conn
    conn.connect()
  File "newrelic/hooks/external_httplib.py", line 33, in httplib_connect_wrapper
    return wrapped(*args, **kwargs)
  File "urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)

MaxRetryError: HTTPSConnectionPool(host='none', port=443): Max retries exceeded with url: /api/v0/catalog/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ffa0d54a8>: Failed to establish a new connection: [Errno -2] Name or service not known'))
  File "requests/adapters.py", line 449, in send
    timeout=timeout
  File "urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "urllib3/util/retry.py", line 399, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))

ConnectionError: HTTPSConnectionPool(host='none', port=443): Max retries exceeded with url: /api/v0/catalog/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ffa0d54a8>: Failed to establish a new connection: [Errno -2] Name or service not known'))
(9 additional frame(s) were not displayed)
...
  File "newrelic/api/external_trace.py", line 62, in dynamic_wrapper
    return return_value(trace, lambda: wrapped(*args, **kwargs))
  File "newrelic/api/coroutine_trace.py", line 171, in return_value
    return fn()
  File "newrelic/api/external_trace.py", line 62, in <lambda>
    return return_value(trace, lambda: wrapped(*args, **kwargs))
  File "requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
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