Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save clarkgrubb/b07f3962ab0fd701556d669e48d211a7 to your computer and use it in GitHub Desktop.
Save clarkgrubb/b07f3962ab0fd701556d669e48d211a7 to your computer and use it in GitHub Desktop.
api_content_launcher_1 | Traceback (most recent call last):
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/urllib3/connection.py", line 141, in _new_conn
api_content_launcher_1 | (self.host, self.port), self.timeout, **extra_kw)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/urllib3/util/connection.py", line 60, in create_connection
api_content_launcher_1 | for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
api_content_launcher_1 | File "/usr/local/lib/python3.5/socket.py", line 732, in getaddrinfo
api_content_launcher_1 | for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
api_content_launcher_1 | socket.gaierror: [Errno -2] Name or service not known
api_content_launcher_1 |
api_content_launcher_1 | During handling of the above exception, another exception occurred:
api_content_launcher_1 |
api_content_launcher_1 | Traceback (most recent call last):
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 601, in urlopen
api_content_launcher_1 | chunked=chunked)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/newrelic/hooks/external_urllib3.py", line 21, in _nr_wrapper_make_request_
api_content_launcher_1 | return wrapped(*args, **kwargs)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/newrelic/hooks/external_urllib3.py", line 21, in _nr_wrapper_make_request_
api_content_launcher_1 | return wrapped(*args, **kwargs)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 346, in _make_request
api_content_launcher_1 | self._validate_conn(conn)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
api_content_launcher_1 | conn.connect()
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/newrelic/hooks/external_httplib.py", line 33, in httplib_connect_wrapper
api_content_launcher_1 | return wrapped(*args, **kwargs)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/urllib3/connection.py", line 284, in connect
api_content_launcher_1 | conn = self._new_conn()
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/urllib3/connection.py", line 150, in _new_conn
api_content_launcher_1 | self, "Failed to establish a new connection: %s" % e)
api_content_launcher_1 | urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f5b487081d0>: Failed to establish a new connection: [Errno -2] Name or service not known
api_content_launcher_1 |
api_content_launcher_1 | During handling of the above exception, another exception occurred:
api_content_launcher_1 |
api_content_launcher_1 | Traceback (most recent call last):
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/requests/adapters.py", line 440, in send
api_content_launcher_1 | timeout=timeout
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 639, in urlopen
api_content_launcher_1 | _stacktrace=sys.exc_info()[2])
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/urllib3/util/retry.py", line 388, in increment
api_content_launcher_1 | raise MaxRetryError(_pool, url, error or ResponseError(cause))
api_content_launcher_1 | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='vault-test.infospace.com', port=443): Max retries exceeded with url: /v1/auth/token/renew-self (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f5b487081d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
api_content_launcher_1 |
api_content_launcher_1 | During handling of the above exception, another exception occurred:
api_content_launcher_1 |
api_content_launcher_1 | Traceback (most recent call last):
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
api_content_launcher_1 | rv = self.dispatch_request()
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
api_content_launcher_1 | return self.view_functions[rule.endpoint](**req.view_args)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/newrelic/hooks/framework_flask.py", line 45, in _nr_wrapper_handler_
api_content_launcher_1 | return wrapped(*args, **kwargs)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/flask_restful/__init__.py", line 480, in wrapper
api_content_launcher_1 | resp = resource(*args, **kwargs)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/flask/views.py", line 84, in view
api_content_launcher_1 | return self.dispatch_request(*args, **kwargs)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/flask_restful/__init__.py", line 595, in dispatch_request
api_content_launcher_1 | resp = meth(*args, **kwargs)
api_content_launcher_1 | File "./src/common/auth.py", line 37, in wrapper
api_content_launcher_1 | return func(*args, **kwargs)
api_content_launcher_1 | File "./src/adsapi/outbrain/util.py", line 12, in get
api_content_launcher_1 | token = self._auth_client.get_token(g.identity.customer)['token']
api_content_launcher_1 | File "./src/adsapi/outbrain/auth/client.py", line 50, in get_token
api_content_launcher_1 | token = self._vault.read_secret(customer_id, 'outbrain/token')
api_content_launcher_1 | File "./src/adsapi/vault.py", line 22, in read_secret
api_content_launcher_1 | self._renew_token()
api_content_launcher_1 | File "./src/adsapi/vault.py", line 59, in _renew_token
api_content_launcher_1 | return self._post(url, None, self._make_headers())
api_content_launcher_1 | File "./src/adsapi/vault.py", line 44, in _post
api_content_launcher_1 | r = requests.post(url, json=data, headers=headers)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/requests/api.py", line 112, in post
api_content_launcher_1 | return request('post', url, data=data, json=json, **kwargs)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/newrelic/api/external_trace.py", line 61, in dynamic_wrapper
api_content_launcher_1 | return return_value(trace, lambda: wrapped(*args, **kwargs))
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/newrelic/api/coroutine_trace.py", line 171, in return_value
api_content_launcher_1 | return fn()
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/newrelic/api/external_trace.py", line 61, in <lambda>
api_content_launcher_1 | return return_value(trace, lambda: wrapped(*args, **kwargs))
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/requests/api.py", line 58, in request
api_content_launcher_1 | return session.request(method=method, url=url, **kwargs)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/requests/sessions.py", line 508, in request
api_content_launcher_1 | resp = self.send(prep, **send_kwargs)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/newrelic/api/external_trace.py", line 61, in dynamic_wrapper
api_content_launcher_1 | return return_value(trace, lambda: wrapped(*args, **kwargs))
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/newrelic/api/coroutine_trace.py", line 171, in return_value
api_content_launcher_1 | return fn()
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/newrelic/api/external_trace.py", line 61, in <lambda>
api_content_launcher_1 | return return_value(trace, lambda: wrapped(*args, **kwargs))
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/requests/sessions.py", line 618, in send
api_content_launcher_1 | r = adapter.send(request, **kwargs)
api_content_launcher_1 | File "/usr/local/lib/python3.5/site-packages/requests/adapters.py", line 508, in send
api_content_launcher_1 | raise ConnectionError(e, request=request)
api_content_launcher_1 | requests.exceptions.ConnectionError: HTTPSConnectionPool(host='vault-test.infospace.com', port=443): Max retries exceeded with url: /v1/auth/token/renew-self (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f5b487081d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment