Closed woltium closed 1 year ago
初始化阶段出错了。 你把程序启动阶段的日志发出来看看。
密码我用xxx替换了
chatgpt-qq-chatgpt-1 | 2023-02-14 02:37:56.210 | INFO | launart.manager:launch_blocking:479 - Starting launart main task...
chatgpt-qq-chatgpt-1 | 2023-02-14 02:37:56.210 | INFO | launart.manager:launch:331 - Launching 5 components as async task...
chatgpt-qq-chatgpt-1 | 2023-02-14 02:37:56.237 | INFO | graia.ariadne.service:base_telemetry:144 -
chatgpt-qq-chatgpt-1 | _ _ _
chatgpt-qq-chatgpt-1 | / \ _ __(_) __ _ __| |_ __ ___
chatgpt-qq-chatgpt-1 | / _ \ | '__| |/ _` |/ _` | '_ \ / _ \
chatgpt-qq-chatgpt-1 | / ___ \| | | | (_| | (_| | | | | __/
chatgpt-qq-chatgpt-1 | /_/ \_\_| |_|\__,_|\__,_|_| |_|\___|
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | graia-amnesia: 0.7.1
chatgpt-qq-chatgpt-1 | graia-ariadne: 0.10.3
chatgpt-qq-chatgpt-1 | graia-broadcast: 0.19.1
chatgpt-qq-chatgpt-1 | launart: 0.6.3
chatgpt-qq-chatgpt-1 | statv: 0.3.2
chatgpt-qq-chatgpt-1 | 2023-02-14 02:37:56.237 | SUCCESS | launart.manager:launch:384 - Layer #1:[http.client/aiohttp, cache.client/memcache] preparation completed.
chatgpt-qq-chatgpt-1 | 2023-02-14 02:37:56.237 | INFO | __main__:start_background:116 - OpenAI 服务器登录中……
chatgpt-qq-chatgpt-1 | 2023-02-14 02:37:56.238 | ERROR | graia.ariadne.util:loguru_exc_callback:76 - Exception:
chatgpt-qq-chatgpt-1 | Traceback (most recent call last):
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/bot.py", line 124, in <module>
chatgpt-qq-chatgpt-1 | app.launch_blocking()
chatgpt-qq-chatgpt-1 | │ └ <classmethod object at 0x7ff8bf9b74f0>
chatgpt-qq-chatgpt-1 | └ <graia.ariadne.app.Ariadne object at 0x7ff87bea37c0>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.9/site-packages/graia/ariadne/app.py", line 313, in launch_blocking
chatgpt-qq-chatgpt-1 | cls.launch_manager.launch_blocking(loop=cls.service.loop, stop_signal=stop_signals)
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ └ (<Signals.SIGINT: 2>,)
chatgpt-qq-chatgpt-1 | │ │ │ │ │ └ <property object at 0x7ff8bf9b1450>
chatgpt-qq-chatgpt-1 | │ │ │ │ └ <graia.ariadne.service.ElizabethService object at 0x7ff8c16fa520>
chatgpt-qq-chatgpt-1 | │ │ │ └ <class 'graia.ariadne.app.Ariadne'>
chatgpt-qq-chatgpt-1 | │ │ └ <function Launart.launch_blocking at 0x7ff8c0b399d0>
chatgpt-qq-chatgpt-1 | │ └ <launart.manager.Launart object at 0x7ff87b66d280>
chatgpt-qq-chatgpt-1 | └ <class 'graia.ariadne.app.Ariadne'>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.9/site-packages/launart/manager.py", line 494, in launch_blocking
chatgpt-qq-chatgpt-1 | loop.run_until_complete(launch_task)
chatgpt-qq-chatgpt-1 | │ │ └ <Task pending name='amnesia-launch' coro=<Launart.launch() running at /usr/local/lib/python3.9/site-packages/launart/manager....
chatgpt-qq-chatgpt-1 | │ └ <function BaseEventLoop.run_until_complete at 0x7ff8c0e6fb80>
chatgpt-qq-chatgpt-1 | └ <_UnixSelectorEventLoop running=True closed=False debug=False>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.9/asyncio/base_events.py", line 634, in run_until_complete
chatgpt-qq-chatgpt-1 | self.run_forever()
chatgpt-qq-chatgpt-1 | │ └ <function BaseEventLoop.run_forever at 0x7ff8c0e6faf0>
chatgpt-qq-chatgpt-1 | └ <_UnixSelectorEventLoop running=True closed=False debug=False>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.9/asyncio/base_events.py", line 601, in run_forever
chatgpt-qq-chatgpt-1 | self._run_once()
chatgpt-qq-chatgpt-1 | │ └ <function BaseEventLoop._run_once at 0x7ff8c0e72670>
chatgpt-qq-chatgpt-1 | └ <_UnixSelectorEventLoop running=True closed=False debug=False>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1905, in _run_once
chatgpt-qq-chatgpt-1 | handle._run()
chatgpt-qq-chatgpt-1 | │ └ <function Handle._run at 0x7ff8c0f95430>
chatgpt-qq-chatgpt-1 | └ <Handle <TaskStepMethWrapper object at 0x7ff87b605b50>()>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in _run
chatgpt-qq-chatgpt-1 | self._context.run(self._callback, *self._args)
chatgpt-qq-chatgpt-1 | │ │ │ │ │ └ <member '_args' of 'Handle' objects>
chatgpt-qq-chatgpt-1 | │ │ │ │ └ <Handle <TaskStepMethWrapper object at 0x7ff87b605b50>()>
chatgpt-qq-chatgpt-1 | │ │ │ └ <member '_callback' of 'Handle' objects>
chatgpt-qq-chatgpt-1 | │ │ └ <Handle <TaskStepMethWrapper object at 0x7ff87b605b50>()>
chatgpt-qq-chatgpt-1 | │ └ <member '_context' of 'Handle' objects>
chatgpt-qq-chatgpt-1 | └ <Handle <TaskStepMethWrapper object at 0x7ff87b605b50>()>
chatgpt-qq-chatgpt-1 | > File "/usr/local/lib/python3.9/site-packages/graia/broadcast/__init__.py", line 191, in Executor
chatgpt-qq-chatgpt-1 | result = await run_always_await(target_callable, **parameter_compile_result)
chatgpt-qq-chatgpt-1 | │ │ └ {'loop': <_UnixSelectorEventLoop running=True closed=False debug=False>}
chatgpt-qq-chatgpt-1 | │ └ <function start_background at 0x7ff87b678670>
chatgpt-qq-chatgpt-1 | └ <function run_always_await at 0x7ff8c0aedaf0>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.9/site-packages/graia/broadcast/utilles.py", line 34, in run_always_await
chatgpt-qq-chatgpt-1 | obj = await obj
chatgpt-qq-chatgpt-1 | └ <coroutine object start_background at 0x7ff87b606c40>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/bot.py", line 120, in start_background
chatgpt-qq-chatgpt-1 | raise e
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/bot.py", line 117, in start_background
chatgpt-qq-chatgpt-1 | chatbot.setup()
chatgpt-qq-chatgpt-1 | │ └ <function setup at 0x7ff8bf9d30d0>
chatgpt-qq-chatgpt-1 | └ <module 'chatbot' from '/app/chatbot.py'>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/chatbot.py", line 26, in setup
chatgpt-qq-chatgpt-1 | bot = Chatbot(email=config.openai.email, password=config.openai.password, proxy=config.openai.proxy, insecure=config.openai.insecure_auth, session_token=config.openai.session_token, paid=config.openai.paid)
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └ False
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └ OpenAIAuth(email='793967421@qq.com', password='xxx, session_token=None, proxy='http://127.0.0.1:7890', insecure_auth...
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └ Config(mirai=Mirai(qq=2546518385, api_key='1234567890', http_url='http://mirai:8080', ws_url='http://mirai:8080'), openai=Ope...
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └ None
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ │ │ │ │ │ │ │ │ └ OpenAIAuth(email='793967421@qq.com', password='xxx', session_token=None, proxy='http://127.0.0.1:7890', insecure_auth...
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ │ │ │ │ │ │ │ └ Config(mirai=Mirai(qq=2546518385, api_key='1234567890', http_url='http://mirai:8080', ws_url='http://mirai:8080'), openai=Ope...
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ │ │ │ │ │ │ └ False
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ │ │ │ │ │ └ OpenAIAuth(email='793967421@qq.com', password='xxx', session_token=None, proxy='http://127.0.0.1:7890', insecure_auth...
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ │ │ │ │ └ Config(mirai=Mirai(qq=2546518385, api_key='1234567890', http_url='http://mirai:8080', ws_url='http://mirai:8080'), openai=Ope...
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ │ │ │ └ 'http://127.0.0.1:7890'
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ │ │ └ OpenAIAuth(email='793967421@qq.com', password='xxx', session_token=None, proxy='http://127.0.0.1:7890', insecure_auth...
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ │ └ Config(mirai=Mirai(qq=2546518385, api_key='1234567890', http_url='http://mirai:8080', ws_url='http://mirai:8080'), openai=Ope...
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ └ 'xxx'
chatgpt-qq-chatgpt-1 | │ │ │ │ │ └ OpenAIAuth(email='793967421@qq.com', password='xxx', session_token=None, proxy='http://127.0.0.1:7890', insecure_auth...
chatgpt-qq-chatgpt-1 | │ │ │ │ └ Config(mirai=Mirai(qq=2546518385, api_key='1234567890', http_url='http://mirai:8080', ws_url='http://mirai:8080'), openai=Ope...
chatgpt-qq-chatgpt-1 | │ │ │ └ '793967421@qq.com'
chatgpt-qq-chatgpt-1 | │ │ └ OpenAIAuth(email='793967421@qq.com', password='xxx', session_token=None, proxy='http://127.0.0.1:7890', insecure_auth...
chatgpt-qq-chatgpt-1 | │ └ Config(mirai=Mirai(qq=2546518385, api_key='1234567890', http_url='http://mirai:8080', ws_url='http://mirai:8080'), openai=Ope...
chatgpt-qq-chatgpt-1 | └ <class 'revChatGPT.V2.Chatbot'>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.9/site-packages/revChatGPT/V2.py", line 135, in __init__
chatgpt-qq-chatgpt-1 | self.login(email, password, proxy, insecure, session_token)
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ └ None
chatgpt-qq-chatgpt-1 | │ │ │ │ │ └ False
chatgpt-qq-chatgpt-1 | │ │ │ │ └ 'http://127.0.0.1:7890'
chatgpt-qq-chatgpt-1 | │ │ │ └ 'xxx'
chatgpt-qq-chatgpt-1 | │ │ └ '793967421@qq.com'
chatgpt-qq-chatgpt-1 | │ └ <function Chatbot.login at 0x7ff8900a11f0>
chatgpt-qq-chatgpt-1 | └ <revChatGPT.V2.Chatbot object at 0x7ff87b605eb0>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.9/site-packages/revChatGPT/V2.py", line 215, in login
chatgpt-qq-chatgpt-1 | auth.begin()
chatgpt-qq-chatgpt-1 | │ └ <function OpenAIAuth.begin at 0x7ff8bd645310>
chatgpt-qq-chatgpt-1 | └ <OpenAIAuth.OpenAIAuth.OpenAIAuth object at 0x7ff87b605f40>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.9/site-packages/OpenAIAuth/OpenAIAuth.py", line 76, in begin
chatgpt-qq-chatgpt-1 | response = self.session.get(
chatgpt-qq-chatgpt-1 | │ │ └ <function Session.get at 0x7ff8bd640d30>
chatgpt-qq-chatgpt-1 | │ └ <tls_client.sessions.Session object at 0x7ff87b620040>
chatgpt-qq-chatgpt-1 | └ <OpenAIAuth.OpenAIAuth.OpenAIAuth object at 0x7ff87b605f40>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.9/site-packages/tls_client/sessions.py", line 363, in get
chatgpt-qq-chatgpt-1 | return self.execute_request(method="GET", url=url, **kwargs)
chatgpt-qq-chatgpt-1 | │ │ │ └ {'headers': {'Host': 'ask.openai.com', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Age...
chatgpt-qq-chatgpt-1 | │ │ └ 'https://explorer.api.openai.com/'
chatgpt-qq-chatgpt-1 | │ └ <function Session.execute_request at 0x7ff8bd640ca0>
chatgpt-qq-chatgpt-1 | └ <tls_client.sessions.Session object at 0x7ff87b620040>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.9/site-packages/tls_client/sessions.py", line 346, in execute_request
chatgpt-qq-chatgpt-1 | raise TLSClientExeption(response_object["body"])
chatgpt-qq-chatgpt-1 | │ └ {'id': '8021b3d3-17c5-461b-9dec-b3d62e00711b', 'sessionId': '61a08a7f-7abc-415b-9af1-7b33dee29c93', 'status': 0, 'target': ''...
chatgpt-qq-chatgpt-1 | └ <class 'tls_client.exceptions.TLSClientExeption'>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | tls_client.exceptions.TLSClientExeption: failed to do request: Get "https://explorer.api.openai.com/": dial tcp 127.0.0.1:7890: connect: connection refused
chatgpt-qq-chatgpt-1 | 2023-02-14 02:37:56.244 | SUCCESS | launart.manager:launch:384 - Layer #3:[elizabeth.service] preparation completed.
chatgpt-qq-chatgpt-1 | 2023-02-14 02:37:56.244 | INFO | launart.manager:launch:389 - All components prepared, start blocking phase.
chatgpt-qq-chatgpt-1 | 2023-02-14 02:37:56.246 | WARNING | graia.amnesia.builtins.aiohttp:connection_manage:229 - ClientConnectorError(ConnectionKey(host='mirai', port=8080, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('172.21.0.2', 8080)"))
connection refused
没连上代理呀。
好的 我代理换好后这个问题解决了 不过unknowerror了 :D 躺着等解决办法了
配置好代理后出现以下问题