Skip to content

Instantly share code, notes, and snippets.

@johnlinp
Created April 27, 2017 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnlinp/8e86368740e95e30bea4a3cfd915d1b4 to your computer and use it in GitHub Desktop.
Save johnlinp/8e86368740e95e30bea4a3cfd915d1b4 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connection.py", line 138, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/util/connection.py", line 75, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/socket.py", line 732, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 594, in urlopen
chunked=chunked)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 350, in _make_request
self._validate_conn(conn)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 835, in _validate_conn
conn.connect()
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connection.py", line 281, in connect
conn = self._new_conn()
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connection.py", line 147, in _new_conn
self, "Failed to establish a new connection: %s" % e)
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fd7c07e4748>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/adapters.py", line 423, in send
timeout=timeout
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 643, in urlopen
_stacktrace=sys.exc_info()[2])
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/util/retry.py", line 363, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='info2.ntu.edu.tw', port=443): Max retries exceeded with url: /facilities/Default.aspx (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fd7c07e4748>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/services/homes/johnlinp/coding/ntu-squash/ntubook", line 281, in <module>
main(sys.argv)
File "/var/services/homes/johnlinp/coding/ntu-squash/ntubook", line 275, in main
citrix_ns_id = get_citrix_ns_id()
File "/var/services/homes/johnlinp/coding/ntu-squash/ntubook", line 34, in get_citrix_ns_id
response = requests.get('https://info2.ntu.edu.tw/facilities/Default.aspx', headers=headers)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/requests/adapters.py", line 487, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='info2.ntu.edu.tw', port=443): Max retries exceeded with url: /facilities/Default.aspx (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fd7c07e4748>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment