Closed Mavacer closed 2 years ago
描述你遇到的问题: 运行文档中的例程时报错
复现步骤: 该 BUG 会在进行以下操作后出现:
发生错误的代码
控制台日志输出截图:
{'beforeDispatch': [], 'afterDispatch': [], 'beforeExecution': [], 'afterExecution': [], 'beforeTargetExec': [], 'afterTargetExec': []} Traceback (most recent call last): File "/data/data/com.termux/files/home/graia/graia/hello_world.py", line 12, in app = GraiaMiraiApplication( File "/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/graia-ZKzXdU8U-py3.9/lib/python3.9/site-packages/graia/application/init.py", line 200, in init self.broadcast.dispatcher_interface.inject_global_raw( File "/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/graia-ZKzXdU8U-py3.9/lib/python3.9/site-packages/graia/broadcast/interfaces/dispatcher.py", line 114, in inject_global_raw self.flush_lifecycle_refs(dispatchers) File "/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/graia-ZKzXdU8U-py3.9/lib/python3.9/site-packages/graia/broadcast/interfaces/dispatcher.py", line 88, in flush_lifecycle_refs self.get_lifecycle_refs(dispatcher, lifecycle_refs) TypeError: unhashable type: 'dict' [2021-07-22 14:20:46,019][ERROR]: Unclosed client session 运行环境:
mirai-core
mirai-api-http
graia-application-mirai
[额外信息:]
这是bcc的问题,可以先回退版本
描述你遇到的问题: 运行文档中的例程时报错
复现步骤: 该 BUG 会在进行以下操作后出现:
发生错误的代码
控制台日志输出截图:
{'beforeDispatch': [], 'afterDispatch': [], 'beforeExecution': [], 'afterExecution': [], 'beforeTargetExec': [], 'afterTargetExec': []} Traceback (most recent call last): File "/data/data/com.termux/files/home/graia/graia/hello_world.py", line 12, in
app = GraiaMiraiApplication(
File "/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/graia-ZKzXdU8U-py3.9/lib/python3.9/site-packages/graia/application/init.py", line 200, in init
self.broadcast.dispatcher_interface.inject_global_raw(
File "/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/graia-ZKzXdU8U-py3.9/lib/python3.9/site-packages/graia/broadcast/interfaces/dispatcher.py", line 114, in inject_global_raw
self.flush_lifecycle_refs(dispatchers)
File "/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/graia-ZKzXdU8U-py3.9/lib/python3.9/site-packages/graia/broadcast/interfaces/dispatcher.py", line 88, in flush_lifecycle_refs
self.get_lifecycle_refs(dispatcher, lifecycle_refs)
TypeError: unhashable type: 'dict'
[2021-07-22 14:20:46,019][ERROR]: Unclosed client session
运行环境:
mirai-core
版本: 未涉及mirai-api-http
版本: 未涉及graia-application-mirai
版本: 0.20.1[额外信息:]