Closed Haibersut closed 1 year ago
更换到1.5.8-beta版本测试也有类似问题 新增了以下报错 2023-02-27 14:40:55,296 - urllib3.connectionpool - WARNING - _put_conn - Connection pool is full, discarding connection: localhost. Connection pool size: 1 Found Cloudflare Cookie! 2023-02-27 14:41:04,180 - urllib3.connectionpool - WARNING - _put_conn - Connection pool is full, discarding connection: localhost. Connection pool size: 1 Found Session Token! 2023-02-27 14:41:07,596 - urllib3.connectionpool - WARNING - _put_conn - Connection pool is full, discarding connection: localhost. Connection pool size: 1
使用 browserless 模式即可。
提交 issue 前,请先确认:
表现
2023-02-27 14:19:32,326 - urllib3.connectionpool - WARNING - urlopen - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000025AB17ACBE0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')': /session/5ab23f0210ae9eba414ded7000903eed/se/log
运行环境:
复现步骤
描述你是如何触发这个 BUG 的 配置好配置文件后,执行bot.py即可触发
预期行为 之前正常登陆过并且能够回答消息,将新增的配置文件[response]和[trigger]加入后再次重开就不行了。
截图
其他内容
PS C:\Users\Administrator\Desktop\chatgpt> py .\bot.py 2023-02-27 14:16:58.020 | INFO | launart.manager:launch_blocking:479 - Starting launart main task... 2023-02-27 14:16:58.022 | INFO | launart.manager:launch:331 - Launching 5 components as async task... 2023-02-27 14:16:58.147 | INFO | graia.ariadne.service:base_telemetry:144 -
/ \ _ (_) _ | | / _ \ | '| |/ ` |/ ` | ' \ / \ / | | | | (| | (_| | | | | / // __| ||\,_|\,|| ||\|
graia-amnesia: 0.7.1 graia-ariadne: 0.10.3 graia-broadcast: 0.19.1 launart: 0.6.3 statv: 0.3.2 2023-02-27 14:16:58.151 | SUCCESS | launart.manager:launch:384 - Layer #1:[http.client/aiohttp, cache.client/memcache] preparation completed. 2023-02-27 14:16:58.153 | INFO | main:start_background:149 - OpenAI 服务器登录中…… 2023-02-27 14:16:58.161 | INFO | manager:login:106 - 正在登录第 1 个 OpenAI 账号
2023-02-27 14:16:58.165 | INFO | manager:__login_browser:128 - 模式:浏览器登录
2023-02-27 14:16:58.166 | INFO | manager:__login_browser:129 - 这需要你拥有最新版的 Chrome 浏览器。
2023-02-27 14:16:58.168 | INFO | manager:__login_browser:130 - 即将打开浏览器窗口……
2023-02-27 14:16:58.170 | INFO | manager:__login_browser:131 - 提示:如果你看见了 Cloudflare 验证码,请手动完成验证 。
2023-02-27 14:16:58.172 | INFO | manager:__login_browser:132 - 如果你持续停留在 Found session token 环节,请使用无浏览器登录模式。
Spawning browser... Browser spawned. 登录 OpenAI ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:--2023-02-27 14:17:14,933 - urllib3.connectionpool - WARNING - _put_conn - Connection pool is full, discarding connection: localhost. Connection pool size: 1 Found Cloudflare Cookie! 登录 OpenAI ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:--2023-02-27 14:17:23,842 - urllib3.connectionpool - WARNING - _put_conn - Connection pool is full, discarding connection: localhost. Connection pool size: 1 Found Session Token! 登录 OpenAI ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:--2023-02-27 14:17:27,776 - urllib3.connectionpool - WARNING - _put_conn - Connection pool is full, discarding connection: localhost. Connection pool size: 1 Login successful. 登录 OpenAI ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00 2023-02-27 14:17:34.089 | SUCCESS | manager:login:125 - 成功登录 1/1 个账号!
2023-02-27 14:17:34.090 | INFO | main:start_background:154 - OpenAI 服务器登录成功
2023-02-27 14:17:34.091 | INFO | main:start_background:155 - 尝试从 Mirai 服务中读取机器人 QQ 的 session key……
2023-02-27 14:17:34.092 | SUCCESS | launart.manager:launch:384 - Layer #3:[elizabeth.service] preparation completed.
2023-02-27 14:17:34.093 | INFO | launart.manager:launch:389 - All components prepared, start blocking phase.
2023-02-27 14:17:36.102 | SUCCESS | graia.ariadne.connection.ws:_:62 - Successfully got session key
2023-02-27 14:17:36,813 - urllib3.connectionpool - WARNING - urlopen - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001B45B0BE860>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')': /session/8c445f855e1d64e7c7d77de0b2d093ad/se/log