You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
然后我在WIN上使用V2RAYN可以访问。
但是我使用python3 request 库的时候就会显示
Traceback (most recent call last):
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 1010, in validate_conn
conn.connect()
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connection.py", line 410, in connect
self.sock = ssl_wrap_socket(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\util\ssl.py", line 420, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\util\ssl.py", line 464, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "D:\Work_soft\Python\Python3\lib\ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "D:\Work_soft\Python\Python3\lib\ssl.py", line 1071, in _create
self.do_handshake()
File "D:\Work_soft\Python\Python3\lib\ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Work_soft\Python\Python3\lib\site-packages\requests\adapters.py", line 440, in send
resp = conn.urlopen(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 783, in urlopen
return self.urlopen(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 783, in urlopen
return self.urlopen(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 783, in urlopen
return self.urlopen(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\util\retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: SOCKSHTTPSConnectionPool(host='google.com', port=443): Max retries exceeded with url: / (Caused by ProtocolError('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
我是用V2RAY建立sock5的代理。我的服务器配置如下
{
"log": {
"access": "/tmp/v2ray_accesslog.log",
"error": "/tmp/v2ray_errorlog.log",
"loglevel": "warning"
},
"inbounds": [
{
"listen": "ip",
"port": "port",
"allocate": {
"strategy": "always",
"refresh": 5,
"concurrency": 6
},
"protocol":"Socks",
"settings": {
"auth": "password",
"accounts": [
{
"user": "username",
"pass": "passwd"
}
],
"udp": false,
"userLevel": 0
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv4",
"userLevel": 0
}
}
]
}
然后我在WIN上使用V2RAYN可以访问。
但是我使用python3 request 库的时候就会显示
Traceback (most recent call last):
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 1010, in validate_conn
conn.connect()
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connection.py", line 410, in connect
self.sock = ssl_wrap_socket(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\util\ssl.py", line 420, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\util\ssl.py", line 464, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "D:\Work_soft\Python\Python3\lib\ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "D:\Work_soft\Python\Python3\lib\ssl.py", line 1071, in _create
self.do_handshake()
File "D:\Work_soft\Python\Python3\lib\ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Work_soft\Python\Python3\lib\site-packages\requests\adapters.py", line 440, in send
resp = conn.urlopen(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 783, in urlopen
return self.urlopen(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 783, in urlopen
return self.urlopen(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 783, in urlopen
return self.urlopen(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "D:\Work_soft\Python\Python3\lib\site-packages\urllib3\util\retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: SOCKSHTTPSConnectionPool(host='google.com', port=443): Max retries exceeded with url: / (Caused by ProtocolError('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
Beta Was this translation helpful? Give feedback.
All reactions