|
|

楼主 |
发表于 2019-7-26 20:36:33
|
显示全部楼层
Traceback (most recent call last):
File "F:\python\lib\site-packages\urllib3\connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "F:\python\lib\site-packages\urllib3\util\connection.py", line 80, in create_connection
raise err
File "F:\python\lib\site-packages\urllib3\util\connection.py", line 70, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\python\lib\site-packages\urllib3\connectionpool.py", line 597, in urlopen
self._prepare_proxy(conn)
File "F:\python\lib\site-packages\urllib3\connectionpool.py", line 807, in _prepare_proxy
conn.connect()
File "F:\python\lib\site-packages\urllib3\connection.py", line 316, in connect
conn = self._new_conn()
File "F:\python\lib\site-packages\urllib3\connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x000000000372A358>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\python\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "F:\python\lib\site-packages\urllib3\connectionpool.py", line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File "F:\python\lib\site-packages\urllib3\util\retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='movies.douban.com', port=443): Max retries exceeded with url: /top250 (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000000000372A358>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))
During handling of the above exception, another exception occurred: |
|