VeighNa量化社区
你的开源社区量化交易平台
rpc
Member
avatar
加入于:
帖子: 11
声望: 0

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\trader\ui\widget.py", line 571, in connect
self.main_engine.connect(setting, self.gateway_name)
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 166, in connect
gateway.connect(setting)
File "c:\vnstudio\lib\site-packages\vnpy\gateway\rpc\rpc_gateway.py", line 43, in connect
self.query_all()
File "c:\vnstudio\lib\site-packages\vnpy\gateway\rpc\rpc_gateway.py", line 70, in query_all
contracts = self.client.get_all_contracts()
File "c:\vnstudio\lib\site-packages\vnpy\rpc__init__.py", line 246, in dorpc
raise RemoteException(msg)
vnpy.rpc.RemoteException: Timeout of 30000ms reached for ['get_all_contracts', (), {}]

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

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\trader\ui\widget.py", line 571, in connect
self.main_engine.connect(setting, self.gateway_name)
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 166, in connect
gateway.connect(setting)
File "c:\vnstudio\lib\site-packages\vnpy\gateway\rpc\rpc_gateway.py", line 43, in connect
self.query_all()
File "c:\vnstudio\lib\site-packages\vnpy\gateway\rpc\rpc_gateway.py", line 70, in query_all
contracts = self.client.get_all_contracts()
File "c:\vnstudio\lib\site-packages\vnpy\rpc__init.py", line 240, in dorpc
self.
socket_req.send_pyobj(req)
File "c:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 627, in send_pyobj
return self.send(msg, flags=flags, **kwargs)
File "c:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 416, in send
return super(Socket, self).send(data, flags=flags, copy=copy, track=track)
File "zmq\backend\cython\socket.pyx", line 728, in zmq.backend.cython.socket.Socket.send
File "zmq\backend\cython\socket.pyx", line 775, in zmq.backend.cython.socket.Socket.send
File "zmq\backend\cython\socket.pyx", line 247, in zmq.backend.cython.socket._send_copy
File "zmq\backend\cython\socket.pyx", line 242, in zmq.backend.cython.socket._send_copy
File "zmq\backend\cython\checkrc.pxd", line 26, in zmq.backend.cython.checkrc._check_rc
zmq.error.ZMQError: Operation cannot be accomplished in current state

Administrator
avatar
加入于:
帖子: 4550
声望: 325

请检查你的两个RPC端口是不是写反了。。。

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

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】