= HTTPConnection('http2bin.org:443')
>>> conn.request('GET', '/get')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Library/Python/2.7/site-packages/hyper/common/connection.py", line 103, in request
method=method, url=url, body=body, headers=headers
File "/Library/Python/2.7/site-packages/hyper/http11/connection.py", line 169, in request
self.connect()
File "/Library/Python/2.7/site-packages/hyper/http11/connection.py", line 119, in connect
sock = socket.create_connection((host, port), 5)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 557, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno 8] nodename nor servname provided, or not known
днс проверь, имя не ресолвится в адрес
Обсуждают сегодня