vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 2
声望: 0

vnpy2.2.0版本使用clash翻墙后 链接币安出错 以前的版本就没有这个问题

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\api\rest\rest_client.py", line 262, in _process_request
proxies=self.proxies,
File "c:\vnstudio\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, send_kwargs)
File "c:\vnstudio\lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request,
kwargs)
File "c:\vnstudio\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "c:\vnstudio\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen
self._prepare_proxy(conn)
File "c:\vnstudio\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy
conn.connect()
File "c:\vnstudio\lib\site-packages\urllib3\connection.py", line 359, in connect
conn = self._connect_tls_proxy(hostname, conn)
File "c:\vnstudio\lib\site-packages\urllib3\connection.py", line 506, in _connect_tls_proxy
ssl_context=sslcontext,
File "c:\vnstudio\lib\site-packages\urllib3\util\ssl
.py", line 432, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_intls)
File "c:\vnstudio\lib\site-packages\urllib3\util\ssl
.py", line 474, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "c:\vnstudio\lib\ssl.py", line 412, in wrap_socket
session=session
File "c:\vnstudio\lib\ssl.py", line 810, in _create
raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname

description

description

Member
avatar
加入于:
帖子: 2621
声望: 157

可以先参考网上相关的帖子降低urllib3版本试试看

Member
avatar
加入于:
帖子: 14
声望: 0

换个$。。。。。。。试试,我换了就可以了

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3

沪公网安备 31011502017034号