Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug]升级3.4.29版本后的AttributeError报错 #549

Closed
2 tasks done
kola63502 opened this issue Feb 20, 2025 · 4 comments
Closed
2 tasks done

[Bug]升级3.4.29版本后的AttributeError报错 #549

kola63502 opened this issue Feb 20, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@kola63502
Copy link

发生了什么

本身在升级前存在req和resp报错故障 升级后该故障消失,随之出现AttributeError报错。并且发现该故障与直接调用命令无关,与llm大模型对话有关。但输入输出内容正常。

如何复现?

正常使用webchat和qq(部署了NapCat)进行自然语言对话都会触发该报错。

AstrBot 版本与部署方式

AstrBot版本:3.4.29
部署方式:Docker
系统:MacOS

操作系统

macOS

额外信息

[06:34:46| ERROR] [llm_request.py:76]: Traceback (most recent call last):
File "/AstrBot/astrbot/core/pipeline/process_stage/method/llm_request.py", line 73, in process
async for ret in wrapper:
File "/AstrBot/astrbot/core/pipeline/stage.py", line 61, in _call_handler
ret = await ready_to_call
File "/AstrBot/data/plugins/astrbot_plugin_mnemosyne/main.py", line 32, in search_memory_and_concat
curr_cid = await self.context.conversation_manager.get_curr_conversation_id(event.unified_msg_origin)
AttributeError: 'AiocqhttpMessageEvent' object has no attribute 'context'

[06:34:57| ERROR] [llm_request.py:95]: Traceback (most recent call last):
File "/AstrBot/astrbot/core/pipeline/process_stage/method/llm_request.py", line 92, in process
async for ret in wrapper:
File "/AstrBot/astrbot/core/pipeline/stage.py", line 61, in _call_handler
ret = await ready_to_call
File "/AstrBot/data/plugins/astrbot_plugin_mnemosyne/main.py", line 83, in process_long_memory
curr_cid = await self.context.conversation_manager.get_curr_conversation_id(event.unified_msg_origin)
AttributeError: 'AiocqhttpMessageEvent' object has no attribute 'context'

你愿意提交 PR 吗?

  • 是的,我愿意提交 PR!

Code of Conduct

@kola63502 kola63502 added the bug Something isn't working label Feb 20, 2025
@Soulter
Copy link
Owner

Soulter commented Feb 20, 2025

你好,这个应该和插件 astrbot_plugin_mnemosyne 有关。可以去该仓库提交 issue 或者禁用这个插件。不过请确保已经按照插件README中要求正确配置了milvus等环境

@Soulter
Copy link
Owner

Soulter commented Feb 20, 2025

复现出来了,应该是新版本的bug,将会进行修复

@Soulter
Copy link
Owner

Soulter commented Feb 20, 2025

已经修复,请升级 v3.4.30

@kola63502
Copy link
Author

好高的效率啊!收到!经测试该报错已消失!感谢维护!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants