Skip to content

不知道是go-cqhttp机器人的问题还是这边的代码问题,gocq用一会儿就用不了了。 #103

@louis26wq

Description

@louis26wq

看不懂代码,不知道是什么意思,,,
一个进程同时开了频道机器人和QQ机器人。
出现下面的红字后。
go-cqhttp机器人没反应了,qq频道机器人还是正常的。

[05-23 11:28:11] [INFO] [GOCQ]: 回复GOCQ消息: [GPT]无闪屏LED灯相对于传统灯泡或荧光灯等光源来说确实...
ERROR: Task exception was never retrieved
future: <Task finished name='Task-2' coro=<CQHTTP.ws_event() done, defined at /usr/local/python3/lib/python3.11/site-packages/nakuru/application.py:56> exception=TypeError('can only concatenate str (not "dict") to str')>
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.11/site-packages/nakuru/application.py", line 71, in ws_event
received_data = NoticeTypes[received_data["notice_type"]].parse_obj(received_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 2 validation errors for ChannelUpdated
old_info -> creator_id
field required (type=value_error.missing)
new_info -> creator_id
field required (type=value_error.missing)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/python3/lib/python3.11/site-packages/nakuru/application.py", line 80, in ws_event
logger.error("Protocol: data parse error: " + received_data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
TypeError: can only concatenate str (not "dict") to str
[05-23 11:31:31] [INFO] [QQ频道]: 收到消息:<@!3826959282XXXXXXXXXXX> 你在吗

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions