输出:
$ ehforwarderbot --profile qq
2021-07-20 14:59:40,781 [Level 99]: ehforwarderbot.__main__ (__main__.init; __main__.py:129)
正在初始化从端 milkice.qq…
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1257, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1303, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1252, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1012, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 952, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9f2b242ac0>: Failed to establish a new connection: [Errno 61] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=5700): Max retries exceeded with url: /get_status (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9f2b242ac0>: Failed to establish a new connection: [Errno 61] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 643, in _coolq_api_wrapper
res = func(**kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cqhttp/__init__.py", line 21, in do_call
resp = requests.post(url, json=kwargs, headers=headers)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=5700): Max retries exceeded with url: /get_status (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9f2b242ac0>: Failed to establish a new connection: [Errno 61] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 681, in check_status_periodically
flag = self.check_running_status()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 658, in check_running_status
res = self._coolq_api_wrapper('get_status')
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 645, in _coolq_api_wrapper
raise CoolQDisconnectedException(self._('Unable to connect to CoolQ Client!'
efb_qq_plugin_go_cqhttp.Exceptions.CoolQDisconnectedException: Unable to connect to CoolQ Client!Error Message:
HTTPConnectionPool(host='127.0.0.1', port=5700): Max retries exceeded with url: /get_status (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9f2b242ac0>: Failed to establish a new connection: [Errno 61] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/efb_qq_slave/ClientMgr.py", line 27, in __init__
self.client = cls(name, config, channel)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 370, in __init__
self.check_status_periodically(threading.Event())
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 684, in check_status_periodically
self.deliver_alert_to_master(self._("We're unable to communicate with CoolQ Client.\n"
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 722, in deliver_alert_to_master
self.send_msg_to_master(context)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/efb_qq_plugin_go_cqhttp/GoCQHttp.py", line 794, in send_msg_to_master
raise Exception(context['message'])
Exception: We're unable to communicate with CoolQ Client.
Please check the connection and credentials provided.
Unable to connect to CoolQ Client!Error Message:
HTTPConnectionPool(host='127.0.0.1', port=5700): Max retries exceeded with url: /get_status (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9f2b242ac0>: Failed to establish a new connection: [Errno 61] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/ehforwarderbot", line 8, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ehforwarderbot/__main__.py", line 335, in main
init(conf)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ehforwarderbot/__main__.py", line 135, in init
coordinator.add_channel(cls(instance_id=instance_id))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/efb_qq_slave/__init__.py", line 44, in __init__
self.init_client_manager()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/efb_qq_slave/__init__.py", line 73, in init_client_manager
self.QQClientMgr = ClientMgr(self.config['Client'], self.config, self)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/efb_qq_slave/ClientMgr.py", line 30, in __init__
raise Exception("Specified client not found!")
Exception: Specified client not found!
配置文件:
图中下边的mirai可以, 但是go-cqhttp不行