nek0us / nonebot-plugin-gpt

Nonebot2's plugin of ChatGPT
GNU General Public License v3.0
12 stars 1 forks source link

UnicodeDecodeError,是什么问题呢? #3

Closed Enceladus6 closed 4 months ago

Enceladus6 commented 4 months ago

05-29 11:05:59 [DEBUG] ChatGPTWeb | Firefox browser is already installed. 05-29 11:06:05 [DEBUG] ChatGPTWeb | mortygvjburba@outlook.com begin login when it start 05-29 11:06:13 [DEBUG] ChatGPTWeb | begin login when it start 05-29 11:06:13 [DEBUG] ChatGPTWeb | context js start! 05-29 11:06:16 [DEBUG] ChatGPTWeb | flush mortygvjburba@outlook.com cf cookie OK! 05-29 11:06:21 [DEBUG] ChatGPTWeb | context mortygvjburba@outlook.com start! 05-29 11:06:21 [DEBUG] ChatGPTWeb | start! 05-29 11:06:43 [DEBUG] ChatGPTWeb | flush mortygvjburba@outlook.com cf cookie OK! 05-29 11:06:44 [DEBUG] ChatGPTWeb | flush over,wait next... 05-29 11:08:16 [DEBUG] ChatGPTWeb | flush mortygvjburba@outlook.com cf cookie OK! 05-29 11:08:17 [DEBUG] ChatGPTWeb | flush over,wait next... 05-29 11:09:30 [DEBUG] ChatGPTWeb | flush mortygvjburba@outlook.com cf cookie OK! 05-29 11:09:31 [DEBUG] ChatGPTWeb | flush over,wait next...

nek0us commented 4 months ago

flush是正常的debug级刷新cookie的log。最上方显示账号已经启动完成了,之后一直保持正常刷新cookie的状态没有使用。 这个流程挺正常的。 是使用中遇到什么问题了吗?

Enceladus6 commented 4 months ago

谢谢,遇到的问题是在群聊和私聊中与bot聊天,得不到回复,显示“ChatGPT回复已超时。”

nek0us commented 4 months ago

谢谢,遇到的问题是在群聊和私聊中与bot聊天,得不到回复,显示“ChatGPT回复已超时。”

有这一段的日志吗

Enceladus6 commented 4 months ago

这个插件的问题应该是得不到任何回复,

“ChatGPT回复已超时。” 这个是另一个插件的回复,我搞错了

05-29 11:19:06 [SUCCESS] nonebot | OneBot V11 3058592720 | [message.private.friend]: Message 693856990 from 1537175635 '你好' 05-29 11:19:06 [DEBUG] nonebot | Checking for matchers in priority 1... 05-29 11:19:06 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56) 05-29 11:19:06 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_admin.wordanalyze, lineno=56) 05-29 11:19:06 [DEBUG] nonebot | Running handler Dependent(call=) 05-29 11:19:06 [DEBUG] nonebot | Handler Dependent(call=_) skipped 05-29 11:19:06 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56) running complete 05-29 11:19:06 [DEBUG] nonebot | Checking for matchers in priority 2... 05-29 11:19:06 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18) 05-29 11:19:06 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) 05-29 11:19:06 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_admin.autoban, lineno=18) 05-29 11:19:06 [DEBUG] nonebot | Running handler Dependent(call=) 05-29 11:19:06 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) 05-29 11:19:06 [DEBUG] nonebot | Running handler Dependent(call=checkpic) 05-29 11:19:06 [DEBUG] nonebot | Handler Dependent(call=) skipped 05-29 11:19:06 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18) running complete 05-29 11:19:06 [DEBUG] nonebot | Handler Dependent(call=check_pic) skipped 05-29 11:19:06 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) running complete 05-29 11:19:06 [DEBUG] nonebot | Checking for matchers in priority 5... 05-29 11:19:06 [DEBUG] nonebot | Checking for matchers in priority 21... 05-29 11:19:06 [DEBUG] nonebot | Checking for matchers in priority 50... 05-29 11:19:06 [DEBUG] nonebot | Checking for matchers in priority 51... 05-29 11:19:06 [DEBUG] nonebot | Checking for matchers completed 05-29 11:19:23 [DEBUG] ChatGPTWeb | flush mortygvjburba@outlook.com cf cookie OK! 05-29 11:19:24 [DEBUG] ChatGPTWeb | flush over,wait next...

nek0us commented 4 months ago

看起来是消息事件没有触发本插件,事件响应顺序到51就停止了,也许是被什么东西阻断了。 本插件对话的默认响应优先级是90,有个配置参数可以修改它,你改高点试试

Enceladus6 commented 4 months ago

感谢,这个问题已经解决了,是开启了白名单模式,因为一开始没反应,所以我把原本的90改成了51,现在该回去了,可以正确响应,但遇到了新的问题:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 0: invalid continuation byte

05-29 11:36:21 [INFO] nonebot_plugin_admin | 860576143收到1537175635的消息: "你好" 05-29 11:36:21 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18) running complete 05-29 11:36:21 [DEBUG] nonebot | Checking for matchers in priority 5... 05-29 11:36:21 [DEBUG] nonebot | Checking for matchers in priority 19... 05-29 11:36:21 [DEBUG] nonebot | Checking for matchers in priority 50... 05-29 11:36:21 [DEBUG] nonebot | Checking for matchers in priority 90... 05-29 11:36:21 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) 05-29 11:36:21 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) 05-29 11:36:21 [DEBUG] nonebot | Running handler Dependent(call=chat_handle) 05-29 11:36:21 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) running complete 05-29 11:36:21 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) failed. Traceback (most recent call last): File "", line 21, in File "E:\Enceladus6\杂\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot__init.py", line 334, in run get_driver().run(*args, *kwargs) File "E:\Enceladus6\杂\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run uvicorn.run( File "E:\Enceladus6\杂\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\uvicorn\main.py", line 578, in run server.run() File "E:\Enceladus6\杂\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\uvicorn\server.py", line 61, in run return asyncio.run(self.serve(sockets=sockets)) File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run return runner.run(main) File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 640, in run_until_complete self.run_forever() File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\windows_events.py", line 321, in run_forever super().run_forever() File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 607, in run_forever self._run_once() File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 1922, in _run_once handle._run() File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, self._args) File "E:\Enceladus6\杂\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher await _run_matcher( File "E:\Enceladus6\杂\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot\message.py", line 428, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "E:\Enceladus6\杂\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 842, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "E:\Enceladus6\杂\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 817, in simple_run await handler( File "E:\Enceladus6\杂\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot\dependencies\init.py", line 106, in call return await cast(Callable[..., Awaitable[R]], self.call)(**values) File "E:\Enceladus6\杂\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot_plugin_gpt\init__.py", line 93, in chat_handle await chat_msg(event,chatbot,text) File "E:\Enceladus6\杂\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot_plugin_gpt\api.py", line 57, in chat_msg await ban_check(event,matcher,text) File "E:\Enceladus6\杂\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot_plugin_gpt\check.py", line 108, in ban_check ban_str_tmp = ban_str_path.read_text("utf-8").splitlines() File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\pathlib.py", line 1059, in read_text return f.read() File "", line 322, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 0: invalid continuation byte 05-29 11:36:21 [DEBUG] nonebot | Stop event propagation 05-29 11:36:21 [DEBUG] nonebot | Checking for matchers completed

nek0us commented 4 months ago

可能是bot路径有中文的问题。有更完整的报错日志吗?

Enceladus6 commented 4 months ago

更改了bot路径,目前没有中文了,但仍有这个问题

05-29 11:50:34 [DEBUG] nonebot | Succeeded to load adapter "OneBot V11" 05-29 11:50:34 [DEBUG] nonebot | Succeeded to load adapter "QQ Guild" 05-29 11:50:34 [SUCCESS] nonebot | Succeeded to load plugin "echo" from "nonebot.plugins.echo" 05-29 11:50:34 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_apscheduler" 05-29 11:50:34 [INFO] nonebot_plugin_admin | 已检测到软依赖nonebot_plugin_apscheduler, 开启定时任务功能 05-29 11:50:34 [ERROR] nonebot_plugin_admin | ValueError:'Config' object has no attribute 'send_group_id' 05-29 11:50:34 [ERROR] nonebot_plugin_admin | 请配置send_group_id 05-29 11:50:35 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_admin" 05-29 11:50:35 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_localstore" 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已应用 gpt_proxy 代理配置:http://127.0.0.1:7890 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已关闭 arkose_status 验证配置 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已配置 1 个账号信息 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已开启 group_chat 多人识别配置 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已关闭 gpt_chat_start_in_msg 聊天前缀加入消息 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已开启 随机延迟登录 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已应用 聊天事件响应优先级 gpt_chat_priority 90 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已应用 命令事件响应优先级 gpt_command_priority 19 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已关闭 gpt_white_list_mode 白名单模式 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已关闭 gpt_replay_to_replay 回复 回复消息 05-29 11:50:35 [WARNING] nonebot_plugin_gpt | 未配置 gpt 屏蔽词 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已开启 官方管理群 gpt_manage_ids ['860576143'] 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已开启 gpt_lgr_markdown 拉格兰MarkDown转换 05-29 11:50:35 [SUCCESS] nonebot_plugin_gpt | 已关闭 gpt_httpx httpx使用 05-29 11:50:35 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_htmlrender" 05-29 11:50:35 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_gpt" 05-29 11:50:35 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_guild_patch" 05-29 11:50:35 [SUCCESS] nonebot | Running NoneBot... 05-29 11:50:35 [DEBUG] nonebot | Loaded adapters: OneBot V11, QQ Guild 05-29 11:50:35 [INFO] uvicorn | Started server process [33036] 05-29 11:50:35 [INFO] uvicorn | Waiting for application startup. 05-29 11:50:35 [DEBUG] nonebot | QQ Guild | QQ Guild run in sandbox mode: False 05-29 11:50:35 [DEBUG] nonebot | QQ Guild | QQ Guild api base url: https://api.sgroup.qq.com/ 05-29 11:50:35 [INFO] nonebot_plugin_apscheduler | Scheduler Started 05-29 11:50:36 [INFO] nonebot_plugin_htmlrender | 使用 chromium 启动 05-29 11:50:36 [INFO] nonebot_plugin_htmlrender | Browser Started. 05-29 11:50:36 [INFO] nonebot_plugin_gpt | 登录GPT账号中 05-29 11:50:36 [INFO] uvicorn | Application startup complete. 05-29 11:50:36 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:10081 (Press CTRL+C to quit) 05-29 11:50:36 [INFO] uvicorn | ('127.0.0.1', 52053) - "WebSocket /onebot/v11/ws" [accepted] 05-29 11:50:36 [INFO] nonebot | OneBot V11 | Bot 3058592720 connected 05-29 11:50:36 [INFO] websockets | connection open 05-29 11:50:36 [INFO] nonebot_plugin_admin | Admin 插件 初始化检测完成 05-29 11:50:36 [DEBUG] nonebot | OneBot V11 | Calling API get_group_list 05-29 11:52:27 [SUCCESS] nonebot | OneBot V11 3058592720 | [message.group.normal]: Message 82397997 from 1537175635@[群:860576143] '[at:qq=3058592720] 你好' 05-29 11:52:27 [DEBUG] nonebot | Checking for matchers in priority 1... 05-29 11:52:27 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56) 05-29 11:52:27 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56) running is cancelled 05-29 11:52:27 [DEBUG] nonebot | Checking for matchers in priority 2... 05-29 11:52:27 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18) 05-29 11:52:27 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) 05-29 11:52:27 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_admin.autoban, lineno=18) 05-29 11:52:27 [DEBUG] nonebot | Running handler Dependent(call=) 05-29 11:52:27 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) running is cancelled 05-29 11:52:27 [INFO] nonebot_plugin_admin | 860576143收到1537175635的消息: "你好" 05-29 11:52:27 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18) running complete 05-29 11:52:27 [DEBUG] nonebot | Checking for matchers in priority 5... 05-29 11:52:27 [DEBUG] nonebot | Checking for matchers in priority 19... 05-29 11:52:27 [DEBUG] nonebot | Checking for matchers in priority 50... 05-29 11:52:27 [DEBUG] nonebot | Checking for matchers in priority 90... 05-29 11:52:27 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) 05-29 11:52:27 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) 05-29 11:52:27 [DEBUG] nonebot | Running handler Dependent(call=chat_handle) 05-29 11:52:27 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) running complete 05-29 11:52:27 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) failed. Traceback (most recent call last): File "", line 21, in File "E:\Enceladus6\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot__init.py", line 334, in run get_driver().run(*args, *kwargs) File "E:\Enceladus6\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run uvicorn.run( File "E:\Enceladus6\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\uvicorn\main.py", line 578, in run server.run() File "E:\Enceladus6\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\uvicorn\server.py", line 61, in run return asyncio.run(self.serve(sockets=sockets)) File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run return runner.run(main) File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 640, in run_until_complete self.run_forever() File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\windows_events.py", line 321, in run_forever super().run_forever() File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 607, in run_forever self._run_once() File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 1922, in _run_once handle._run() File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, self._args) File "E:\Enceladus6\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher await _run_matcher( File "E:\Enceladus6\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot\message.py", line 428, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "E:\Enceladus6\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 842, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "E:\Enceladus6\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 817, in simple_run await handler( File "E:\Enceladus6\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot\dependencies\init.py", line 106, in call return await cast(Callable[..., Awaitable[R]], self.call)(**values) File "E:\Enceladus6\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot_plugin_gpt\init__.py", line 93, in chat_handle await chat_msg(event,chatbot,text) File "E:\Enceladus6\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot_plugin_gpt\api.py", line 57, in chat_msg await ban_check(event,matcher,text) File "E:\Enceladus6\Bot\Nonebot2\GPT-Qbot\GPT-Qbot.venv\Lib\site-packages\nonebot_plugin_gpt\check.py", line 108, in ban_check ban_str_tmp = ban_str_path.read_text("utf-8").splitlines() File "C:\Users\15371\AppData\Local\Programs\Python\Python311\Lib\pathlib.py", line 1059, in read_text return f.read() File "", line 322, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 0: invalid continuation byte 05-29 11:52:27 [DEBUG] nonebot | Stop event propagation 05-29 11:52:27 [DEBUG] nonebot | Checking for matchers completed

nek0us commented 4 months ago

等我晚上细看一下

nek0us commented 4 months ago

看起来是windows下字符编码兼容性问题,你看看bot目录里有没有ban目录,然后看看里面的ban_str.ini有无大小和内容,如果有的话打开看看是什么,或者把它以utf8形式保存并清空;或者把它删掉。 另外 gpt_lgr_markdown要关掉,这个已经寄了。 gpt_manage_ids 这个是qq适配器用的,你使用的是onebot适配器,它不会生效的。

Enceladus6 commented 4 months ago

感谢,Unicode报错问题已经解决,但目前出现了新的问题: 机器人回复:“and error: send msg retry max”,这是由于连接不上OpenAI吗?

05-30 20:13:16 [INFO] nonebot_plugin_htmlrender | 使用 chromium 启动 05-30 20:13:16 [INFO] nonebot_plugin_htmlrender | Browser Started. 05-30 20:13:16 [INFO] nonebot_plugin_gpt | 登录GPT账号中 05-30 20:13:16 [INFO] nonebot_plugin_apscheduler | Scheduler Started 05-30 20:13:16 [INFO] uvicorn | Application startup complete. 05-30 20:13:16 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:10081 (Press CTRL+C to quit) 05-30 20:13:16 [INFO] uvicorn | ('127.0.0.1', 57909) - "WebSocket /onebot/v11/ws" [accepted] 05-30 20:13:16 [INFO] nonebot | OneBot V11 | Bot 3058592720 connected 05-30 20:13:16 [INFO] websockets | connection open 05-30 20:13:16 [INFO] nonebot_plugin_admin | Admin 插件 初始化检测完成 05-30 20:13:16 [DEBUG] nonebot | OneBot V11 | Calling API get_group_list 05-30 20:13:20 [DEBUG] ChatGPTWeb | Firefox browser is already installed. 05-30 20:13:22 [DEBUG] ChatGPTWeb | begin login when it start 05-30 20:13:29 [DEBUG] ChatGPTWeb | mortygvjburba@outlook.com begin login when it start 05-30 20:13:29 [DEBUG] ChatGPTWeb | context js start! 05-30 20:13:43 [DEBUG] ChatGPTWeb | flush mortygvjburba@outlook.com cf cookie OK! 05-30 20:13:44 [SUCCESS] nonebot | OneBot V11 3058592720 | [message.private.friend]: Message 694621917 from 1537175635 '你好\n' 05-30 20:13:44 [DEBUG] nonebot | Checking for matchers in priority 1... 05-30 20:13:44 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56) 05-30 20:13:44 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_admin.wordanalyze, lineno=56) 05-30 20:13:44 [DEBUG] nonebot | Running handler Dependent(call=) 05-30 20:13:44 [DEBUG] nonebot | Handler Dependent(call=_) skipped 05-30 20:13:44 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56) running complete 05-30 20:13:44 [DEBUG] nonebot | Checking for matchers in priority 2... 05-30 20:13:44 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18) 05-30 20:13:44 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) 05-30 20:13:44 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_admin.autoban, lineno=18) 05-30 20:13:44 [DEBUG] nonebot | Running handler Dependent(call=) 05-30 20:13:44 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) 05-30 20:13:44 [DEBUG] nonebot | Running handler Dependent(call=checkpic) 05-30 20:13:44 [DEBUG] nonebot | Handler Dependent(call=) skipped 05-30 20:13:44 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18) running complete 05-30 20:13:44 [DEBUG] nonebot | Handler Dependent(call=check_pic) skipped 05-30 20:13:44 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) running complete 05-30 20:13:44 [DEBUG] nonebot | Checking for matchers in priority 5... 05-30 20:13:44 [DEBUG] nonebot | Checking for matchers in priority 19... 05-30 20:13:44 [DEBUG] nonebot | Checking for matchers in priority 50... 05-30 20:13:44 [DEBUG] nonebot | Checking for matchers in priority 90... 05-30 20:13:44 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) 05-30 20:13:44 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) 05-30 20:13:44 [DEBUG] nonebot | Running handler Dependent(call=chat_handle) 05-30 20:13:48 [DEBUG] ChatGPTWeb | context mortygvjburba@outlook.com start! 05-30 20:13:48 [DEBUG] ChatGPTWeb | start! 05-30 20:13:49 [DEBUG] ChatGPTWeb | session mortygvjburba@outlook.com begin work 05-30 20:13:51 [DEBUG] ChatGPTWeb | send:你好

05-30 20:13:52 [WARNING] ChatGPTWeb | 'wss_url' 05-30 20:13:52 [DEBUG] ChatGPTWeb | resend 2 05-30 20:13:55 [DEBUG] ChatGPTWeb | send:你好

05-30 20:13:56 [WARNING] ChatGPTWeb | 'wss_url' 05-30 20:13:56 [DEBUG] ChatGPTWeb | resend 1 05-30 20:13:59 [DEBUG] ChatGPTWeb | send:你好

05-30 20:14:00 [WARNING] ChatGPTWeb | 'wss_url' 05-30 20:14:00 [DEBUG] ChatGPTWeb | resend 0 05-30 20:14:00 [DEBUG] ChatGPTWeb | session mortygvjburba@outlook.com finish work 05-30 20:14:00 [DEBUG] nonebot | OneBot V11 | Calling API send_msg 05-30 20:14:04 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) running complete 05-30 20:14:04 [DEBUG] nonebot | Stop event propagation 05-30 20:14:04 [DEBUG] nonebot | Checking for matchers completed 05-30 20:14:35 [DEBUG] ChatGPTWeb | flush mortygvjburba@outlook.com cf cookie OK! 05-30 20:14:36 [DEBUG] ChatGPTWeb | flush over,wait next...

nek0us commented 4 months ago

感谢,Unicode报错问题已经解决,但目前出现了新的问题: 机器人回复:“and error: send msg retry max”,这是由于连接不上OpenAI吗?

05-30 20:13:16 [INFO] nonebot_plugin_htmlrender | 使用 chromium 启动 05-30 20:13:16 [INFO] nonebot_plugin_htmlrender | Browser Started. 05-30 20:13:16 [INFO] nonebot_plugin_gpt | 登录GPT账号中 05-30 20:13:16 [INFO] nonebot_plugin_apscheduler | Scheduler Started 05-30 20:13:16 [INFO] uvicorn | Application startup complete. 05-30 20:13:16 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:10081 (Press CTRL+C to quit) 05-30 20:13:16 [INFO] uvicorn | ('127.0.0.1', 57909) - "WebSocket /onebot/v11/ws" [accepted] 05-30 20:13:16 [INFO] nonebot | OneBot V11 | Bot 3058592720 connected 05-30 20:13:16 [INFO] websockets | connection open 05-30 20:13:16 [INFO] nonebot_plugin_admin | Admin 插件 初始化检测完成 05-30 20:13:16 [DEBUG] nonebot | OneBot V11 | Calling API get_group_list 05-30 20:13:20 [DEBUG] ChatGPTWeb | Firefox browser is already installed. 05-30 20:13:22 [DEBUG] ChatGPTWeb | begin login when it start 05-30 20:13:29 [DEBUG] ChatGPTWeb | mortygvjburba@outlook.com begin login when it start 05-30 20:13:29 [DEBUG] ChatGPTWeb | context js start! 05-30 20:13:43 [DEBUG] ChatGPTWeb | flush mortygvjburba@outlook.com cf cookie OK! 05-30 20:13:44 [SUCCESS] nonebot | OneBot V11 3058592720 | [message.private.friend]: Message 694621917 from 1537175635 '你好\n' 05-30 20:13:44 [DEBUG] nonebot | Checking for matchers in priority 1... 05-30 20:13:44 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56) 05-30 20:13:44 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_admin.wordanalyze, lineno=56) 05-30 20:13:44 [DEBUG] nonebot | Running handler Dependent(call=) 05-30 20:13:44 [DEBUG] nonebot | Handler Dependent(call=_) skipped 05-30 20:13:44 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56) running complete 05-30 20:13:44 [DEBUG] nonebot | Checking for matchers in priority 2... 05-30 20:13:44 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18) 05-30 20:13:44 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) 05-30 20:13:44 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_admin.autoban, lineno=18) 05-30 20:13:44 [DEBUG] nonebot | Running handler Dependent(call=) 05-30 20:13:44 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) 05-30 20:13:44 [DEBUG] nonebot | Running handler Dependent(call=checkpic) 05-30 20:13:44 [DEBUG] nonebot | Handler Dependent(call=) skipped 05-30 20:13:44 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18) running complete 05-30 20:13:44 [DEBUG] nonebot | Handler Dependent(call=check_pic) skipped 05-30 20:13:44 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) running complete 05-30 20:13:44 [DEBUG] nonebot | Checking for matchers in priority 5... 05-30 20:13:44 [DEBUG] nonebot | Checking for matchers in priority 19... 05-30 20:13:44 [DEBUG] nonebot | Checking for matchers in priority 50... 05-30 20:13:44 [DEBUG] nonebot | Checking for matchers in priority 90... 05-30 20:13:44 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) 05-30 20:13:44 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) 05-30 20:13:44 [DEBUG] nonebot | Running handler Dependent(call=chat_handle) 05-30 20:13:48 [DEBUG] ChatGPTWeb | context mortygvjburba@outlook.com start! 05-30 20:13:48 [DEBUG] ChatGPTWeb | start! 05-30 20:13:49 [DEBUG] ChatGPTWeb | session mortygvjburba@outlook.com begin work 05-30 20:13:51 [DEBUG] ChatGPTWeb | send:你好

05-30 20:13:52 [WARNING] ChatGPTWeb | 'wss_url' 05-30 20:13:52 [DEBUG] ChatGPTWeb | resend 2 05-30 20:13:55 [DEBUG] ChatGPTWeb | send:你好

05-30 20:13:56 [WARNING] ChatGPTWeb | 'wss_url' 05-30 20:13:56 [DEBUG] ChatGPTWeb | resend 1 05-30 20:13:59 [DEBUG] ChatGPTWeb | send:你好

05-30 20:14:00 [WARNING] ChatGPTWeb | 'wss_url' 05-30 20:14:00 [DEBUG] ChatGPTWeb | resend 0 05-30 20:14:00 [DEBUG] ChatGPTWeb | session mortygvjburba@outlook.com finish work 05-30 20:14:00 [DEBUG] nonebot | OneBot V11 | Calling API send_msg 05-30 20:14:04 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_gpt, lineno=90) running complete 05-30 20:14:04 [DEBUG] nonebot | Stop event propagation 05-30 20:14:04 [DEBUG] nonebot | Checking for matchers completed 05-30 20:14:35 [DEBUG] ChatGPTWeb | flush mortygvjburba@outlook.com cf cookie OK! 05-30 20:14:36 [DEBUG] ChatGPTWeb | flush over,wait next...

看起来像是发送超时了,你这个是plus账号吗?换个账号或者换个节点呢?

Enceladus6 commented 4 months ago

这个节点浏览器是可以正常使用的,此外更换了几个节点,浏览器都可以使用。 上面的账号是3.5的,我试了另一个4.0的账号,依然是这种情况,更换节点、改全局也不行。

Enceladus6 commented 4 months ago

检查ChatGPT网页里面,“你好”是没发送进去的

nek0us commented 4 months ago

这个报错有点奇怪,请问你介意留个企鹅号我加你,帮助我完成debug吗?

nek0us commented 4 months ago

或者等我加完班回去更新一下异常信息