ehForwarderBot / efb-qq-slave

EFB QQ Slave, a channel for EH Forwarder Bot. EFB QQ从端
GNU General Public License v3.0
447 stars 48 forks source link

运行出错 Specified client not found #113

Closed HorizenX1 closed 2 years ago

HorizenX1 commented 2 years ago

2022-08-02 00:38:45,668 [Level 99]: ehforwarderbot.main (main.init; main.py:129) 正在初始化从端 milkice.qq… Traceback (most recent call last): File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 806, in _coolq_api_wrapper res = await self.coolq_bot.call_action(func_name, kwargs) File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/aiocqhttp/init.py", line 238, in call_action return await self._api.call_action(action=action, params) File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/aiocqhttp/api_impl.py", line 185, in call_action result = await self._http_api.call_action(action, **params) File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/aiocqhttp/api_impl.py", line 71, in call_action raise HttpFailed(resp.status_code) aiocqhttp.exceptions.HttpFailed: <HttpFailed, status_code=502>

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 27, in init self.client = cls(name, config, channel) File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 528, in init asyncio.run(self.check_status_periodically(run_once=True)) File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 845, in check_status_periodically flag = await self.check_running_status() File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 822, in check_running_status res = await self._coolq_api_wrapper("get_status") File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 812, in _coolq_api_wrapper ex.status_code, ex.retcode AttributeError: 'HttpFailed' object has no attribute 'retcode'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/xh1045925330/anaconda3/envs/efb/bin/ehforwarderbot", line 8, in sys.exit(main()) File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/ehforwarderbot/main.py", line 335, in main init(conf) File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/ehforwarderbot/main.py", line 135, in init coordinator.add_channel(cls(instance_id=instance_id)) File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/efb_qq_slave/init.py", line 44, in init self.init_client_manager() File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/efb_qq_slave/init.py", line 73, in init_client_manager self.QQClientMgr = ClientMgr(self.config['Client'], self.config, self) File "/home/xh1045925330/anaconda3/envs/efb/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 30, in init raise Exception("Specified client not found!") Exception: Specified client not found!