You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
07-30 15:02:13 [DEBUG] nonebot | OneBot V11 | Event Parser Error
...
lib/python3.11/site-packages/nonebot/adapters/onebot/v11/adapter.py", line 419, in json_to_event
event = model.parse_obj(json_data)
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
return cls(**obj)
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
raise validation_error
pydantic.error_wrappers.ValidationError: 2 validation errors for MessageEvent
sub_type
field required (type=value_error.missing)
font
field required (type=value_error.missing)
> File "/home/memoryshadow/Downloads/A/OPQBot/.nonebot-adapter-opqbot-vpy/lib/python3.11/site-packages/nonebot/adapters/onebot/v11/adapter.py", line 419, in json_to_event
event = model.parse_obj(json_data)
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
return cls(**obj)
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
raise validation_error
pydantic.error_wrappers.ValidationError: 1 validation error for HeartbeatMetaEvent
status
field required (type=value_error.missing)
我按照对应的信息令StarRail与OPQBot和nonebot使用
/onebot/v11/ws
这个挂载点对接后, nonebot对传入的信息不断的抛出异常. 我推测可能是由于传入的信息与V11内置的格式不匹配造成的, 希望作者修复这个问题或是提供更多的信息.附上抛出的异常相关部分:
通过我的观察, 应该是消息事件中的数据缺少了
sub_type
,original_message
,font
这几个字段,The text was updated successfully, but these errors were encountered: