-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
What happened / 发生了什么
在我的服务器中(版本为Windows - Server2022),手动部署或一键部署成功,接入napcat之后,发现日志只能返回图片消息,接收文字消息时直接报错,重装系统后再次部署,仍然报错
Reproduce / 如何复现?
1.安装Python环境
2.下载astrbot一键部署压缩包并正常部署,提示启动成功
3.下载napcat desktop并安装
4.配置平台适配器
5.提示接入成功
6.私聊/群聊发送任意文字消息(我发送的是astrbot内置指令)
7.控制台报错
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
4.16.0,Windows源码部署,未使用提供商,napcat desktop
OS
Windows
Logs / 报错日志
[15:26:28] [Core] [INFO] [aiocqhttp.aiocqhttp_platform_adapter:106]: aiocqhttp(OneBot v11) 适配器已连接。
[15:26:58] [Core] [ERRO] [v4.16.0] [aiocqhttp.aiocqhttp_platform_adapter:101]: Handle private message failed: 'Plain' object has no attribute 'text'
Traceback (most recent call last):
File �[35m"D:\000000011111\AstrBot\astrbot\core\platform\sources\aiocqhttp\aiocqhttp_platform_adapter.py"�[0m, line �[35m99�[0m, in �[35mprivate�[0m
await self.handle_msg(abm)
File �[35m"D:\000000011111\AstrBot\astrbot\core\platform\sources\aiocqhttp\aiocqhttp_platform_adapter.py"�[0m, line �[35m449�[0m, in �[35mhandle_msg�[0m
message_event = AiocqhttpMessageEvent(
message_str=message.message_str,
...<3 lines>...
bot=self.bot,
)
File �[35m"D:\000000011111\AstrBot\astrbot\core\platform\sources\aiocqhttp\aiocqhttp_message_event.py"�[0m, line �[35m30�[0m, in �[35m__init__�[0m
�[31msuper().__init__�[0m�[1;31m(message_str, message_obj, platform_meta, session_id)�[0m
�[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
File �[35m"D:\000000011111\AstrBot\astrbot\core\platform\astr_message_event.py"�[0m, line �[35m71�[0m, in �[35m__init__�[0m
message_outline=�[31mself.get_message_outline�[0m�[1;31m()�[0m,
�[31m~~~~~~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^�[0m
File �[35m"D:\000000011111\AstrBot\astrbot\core\platform\astr_message_event.py"�[0m, line �[35m162�[0m, in �[35mget_message_outline�[0m
return �[31mself._outline_chain�[0m�[1;31m(self.message_obj.message)�[0m
�[31m~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
File �[35m"D:\000000011111\AstrBot\astrbot\core\platform\astr_message_event.py"�[0m, line �[35m134�[0m, in �[35m_outline_chain�[0m
parts.append(�[1;31mi.text�[0m)
�[1;31m^^^^^^�[0m
�[1;35mAttributeError�[0m: �[35m'Plain' object has no attribute 'text'�[0m
Are you willing to submit a PR? / 你愿意提交 PR 吗?
- Yes!
Code of Conduct
- I have read and agree to abide by the project's Code of Conduct。