运行example_bypass_sni.py时仍然报错:
`Traceback (most recent call last):
File "F:\Pyhon39\lib\site-packages\urllib3\connection.py", line 199, in _new_conn
sock = connection.create_connection(
File "F:\Pyhon39\lib\site-packages\urllib3\util\connection.py", line 85, in create_connection
raise err
File "F:\Pyhon39\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\Pyhon39\lib\site-packages\urllib3\connectionpool.py", line 789, in urlopen
response = self._make_request(
File "F:\Pyhon39\lib\site-packages\urllib3\connectionpool.py", line 490, in _make_request
raise new_e
File "F:\Pyhon39\lib\site-packages\urllib3\connectionpool.py", line 466, in _make_request
self._validate_conn(conn)
File "F:\Pyhon39\lib\site-packages\urllib3\connectionpool.py", line 1095, in _validate_conn
conn.connect()
File "F:\Pyhon39\lib\site-packages\urllib3\connection.py", line 693, in connect
self.sock = sock = self._new_conn()
File "F:\Pyhon39\lib\site-packages\urllib3\connection.py", line 214, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x0000027BE8CD07F0>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\Pyhon39\lib\site-packages\requests\adapters.py", line 667, in send
resp = conn.urlopen(
File "F:\Pyhon39\lib\site-packages\urllib3\connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "F:\Pyhon39\lib\site-packages\urllib3\util\retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='oauth.secure.pixiv.net', port=443): Max retries exceeded with url: /auth/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000027BE8CD07F0>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\GithubClone\pixivpy\pixivpy3\api.py", line 82, in requests_call
response = self.requests.post(
File "F:\Pyhon39\lib\site-packages\requests\sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "F:\Pyhon39\lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "F:\Pyhon39\lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "F:\Pyhon39\lib\site-packages\requests_toolbelt\adapters\host_header_ssl.py", line 43, in send
return super(HostHeaderSSLAdapter, self).send(request, **kwargs)
File "F:\Pyhon39\lib\site-packages\requests\adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='oauth.secure.pixiv.net', port=443): Max retries exceeded with url: /auth/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000027BE8CD07F0>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试 失败。'))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\GithubClone\pixivpy\example_bypass_sni.py", line 40, in
main()
File "F:\GithubClone\pixivpy\example_bypass_sni.py", line 21, in main
print(api.auth(refresh_token=REFRESH_TOKEN))
File "F:\GithubClone\pixivpy\pixivpy3\api.py", line 163, in auth
r = self.requests_call("POST", url, headers=headers, data=data)
File "F:\GithubClone\pixivpy\pixivpy3\api.py", line 105, in requests_call
raise PixivError(msg) from e
pixivpy3.utils.PixivError: requests POST https://oauth.secure.pixiv.net/auth/token error: HTTPSConnectionPool(host='oauth.secure.pixiv.net', port=443): Max retries exceeded with url: /auth/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000027BE8CD07F0>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。'))`
运行example_bypass_sni.py时仍然报错:
`Traceback (most recent call last):
File "F:\Pyhon39\lib\site-packages\urllib3\connection.py", line 199, in _new_conn
sock = connection.create_connection(
File "F:\Pyhon39\lib\site-packages\urllib3\util\connection.py", line 85, in create_connection
raise err
File "F:\Pyhon39\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\Pyhon39\lib\site-packages\urllib3\connectionpool.py", line 789, in urlopen
response = self._make_request(
File "F:\Pyhon39\lib\site-packages\urllib3\connectionpool.py", line 490, in _make_request
raise new_e
File "F:\Pyhon39\lib\site-packages\urllib3\connectionpool.py", line 466, in _make_request
self._validate_conn(conn)
File "F:\Pyhon39\lib\site-packages\urllib3\connectionpool.py", line 1095, in _validate_conn
conn.connect()
File "F:\Pyhon39\lib\site-packages\urllib3\connection.py", line 693, in connect
self.sock = sock = self._new_conn()
File "F:\Pyhon39\lib\site-packages\urllib3\connection.py", line 214, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x0000027BE8CD07F0>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\Pyhon39\lib\site-packages\requests\adapters.py", line 667, in send
resp = conn.urlopen(
File "F:\Pyhon39\lib\site-packages\urllib3\connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "F:\Pyhon39\lib\site-packages\urllib3\util\retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='oauth.secure.pixiv.net', port=443): Max retries exceeded with url: /auth/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000027BE8CD07F0>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\GithubClone\pixivpy\pixivpy3\api.py", line 82, in requests_call
response = self.requests.post(
File "F:\Pyhon39\lib\site-packages\requests\sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "F:\Pyhon39\lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "F:\Pyhon39\lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "F:\Pyhon39\lib\site-packages\requests_toolbelt\adapters\host_header_ssl.py", line 43, in send
return super(HostHeaderSSLAdapter, self).send(request, **kwargs)
File "F:\Pyhon39\lib\site-packages\requests\adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='oauth.secure.pixiv.net', port=443): Max retries exceeded with url: /auth/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000027BE8CD07F0>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试 失败。'))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\GithubClone\pixivpy\example_bypass_sni.py", line 40, in
main()
File "F:\GithubClone\pixivpy\example_bypass_sni.py", line 21, in main
print(api.auth(refresh_token=REFRESH_TOKEN))
File "F:\GithubClone\pixivpy\pixivpy3\api.py", line 163, in auth
r = self.requests_call("POST", url, headers=headers, data=data)
File "F:\GithubClone\pixivpy\pixivpy3\api.py", line 105, in requests_call
raise PixivError(msg) from e
pixivpy3.utils.PixivError: requests POST https://oauth.secure.pixiv.net/auth/token error: HTTPSConnectionPool(host='oauth.secure.pixiv.net', port=443): Max retries exceeded with url: /auth/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000027BE8CD07F0>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。'))`