lich0821 / WeChatRobot

微信机器人,接入Gemini、ChatGPT、ChatGLM、讯飞星火、Tigerbot;成语接龙、天气预报、新闻摘要、定时任务。
MIT License
1.32k stars 261 forks source link

[🐛BUG] windows server 中无法处理消息,报错。 #83

Closed 404forever1 closed 3 hours ago

404forever1 commented 3 hours ago

File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1045, in _bootstrap_inner self.run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 982, in run self._target(*self._args, **self._kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\wcferry\client.py", line 520, in listening_msg self.msg_socket.dial(self.msg_url, block=True) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pynng\nng.py", line 388, in dial return self._dial(address, flags=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pynng\nng.py", line 407, in _dial check_err(ret) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pynng\exceptions.py", line 202, in check_err raise exc(string, err)

404forever1 commented 3 hours ago

[2024-11-20 00:02:43.687] [info] [WCF] [spy.cpp::35::InitSpy] WeChat version: 3.9.10.27 [2024-11-20 00:02:43.688] [info] [WCF] [rpc_server.cpp::1010::RunServer] CMD Server listening on tcp://0.0.0.0:10086 [2024-11-20 00:02:43.690] [debug] [WCF] [rpc_server.cpp::854::dispatcher] 0x01[Functions_FUNC_IS_LOGIN] length: 2 [2024-11-20 00:02:43.690] [debug] [WCF] [rpc_server.cpp::1027::RunServer] Send data length 4 [2024-11-20 00:02:44.690] [debug] [WCF] [rpc_server.cpp::854::dispatcher] 0x01[Functions_FUNC_IS_LOGIN] length: 2 [2024-11-20 00:02:44.690] [debug] [WCF] [rpc_server.cpp::1027::RunServer] Send data length 4 [2024-11-20 00:02:45.691] [debug] [WCF] [rpc_server.cpp::854::dispatcher] 0x01[Functions_FUNC_IS_LOGIN] length: 2 [2024-11-20 00:02:45.691] [debug] [WCF] [rpc_server.cpp::1027::RunServer] Send data length 4 [2024-11-20 00:02:46.691] [debug] [WCF] [rpc_server.cpp::854::dispatcher] 0x01[Functions_FUNC_IS_LOGIN] length: 2 [2024-11-20 00:02:46.692] [debug] [WCF] [rpc_server.cpp::1027::RunServer] Send data length 4 [2024-11-20 00:02:47.692] [debug] [WCF] [rpc_server.cpp::854::dispatcher] 0x01[Functions_FUNC_IS_LOGIN] length: 2 [2024-11-20 00:02:47.692] [debug] [WCF] [rpc_server.cpp::1027::RunServer] Send data length 4 [2024-11-20 00:02:48.692] [debug] [WCF] [rpc_server.cpp::854::dispatcher] 0x01[Functions_FUNC_IS_LOGIN] length: 2 [2024-11-20 00:02:48.692] [debug] [WCF] [rpc_server.cpp::1027::RunServer] Send data length 4 [2024-11-20 00:02:49.693] [debug] [WCF] [rpc_server.cpp::854::dispatcher] 0x01[Functions_FUNC_IS_LOGIN] length: 2 [2024-11-20 00:02:49.693] [debug] [WCF] [rpc_server.cpp::1027::RunServer] Send data length 4 [2024-11-20 00:02:49.693] [debug] [WCF] [rpc_server.cpp::854::dispatcher] 0x10[Functions_FUNC_GET_SELF_WXID] length: 2 [2024-11-20 00:02:49.693] [debug] [WCF] [rpc_server.cpp::1027::RunServer] Send data length 23 [2024-11-20 00:02:49.693] [debug] [WCF] [rpc_server.cpp::854::dispatcher] 0x10[Functions_FUNC_GET_SELF_WXID] length: 2 [2024-11-20 00:02:49.693] [debug] [WCF] [rpc_server.cpp::1027::RunServer] Send data length 23 [2024-11-20 00:02:49.693] [debug] [WCF] [rpc_server.cpp::854::dispatcher] 0x30[Functions_FUNC_ENABLE_RECV_TXT] length: 4 [2024-11-20 00:02:49.736] [debug] [WCF] [rpc_server.cpp::1027::RunServer] Send data length 4 [2024-11-20 00:02:49.737] [error] [WCF] [rpc_server.cpp::451::PushMessage] nng_listen error Address in use

404forever1 commented 3 hours ago

显示端口被占用?这个服务是使用哪一个端口

404forever1 commented 3 hours ago

折磨死了,找了半天,原来是端口占用。10086和10087我都用了。