Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

bug: 群组管理员变动事件问题 #258

Closed
sckiyo opened this issue Feb 26, 2024 · 0 comments
Closed

bug: 群组管理员变动事件问题 #258

sckiyo opened this issue Feb 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sckiyo
Copy link

sckiyo commented Feb 26, 2024

描述 Bug

管理员增加:缺少user_id字段
管理员减少:缺少user_id字段;sub_type字段期望是set/unset,得到un_set

pydantic_core._pydantic_core.ValidationError: 1 validation error for GroupAdminNoticeEvent
user_id
Field required [type=missing, input_value={'adapter': <alicebot.ada...h8Pkmgjza5wKOEiO4zOu1g'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing

pydantic_core._pydantic_core.ValidationError: 2 validation errors for GroupAdminNoticeEvent
sub_type
Input should be 'set' or 'unset' [type=literal_error, input_value='un_set', input_type=str]
For further information visit https://errors.pydantic.dev/2.6/v/literal_error
user_id
Field required [type=missing, input_value={'adapter': <alicebot.ada...h8Pkmgjza5wKOEiO4zOu1g'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing

直接用websockets库接收事件并打印,是没有user_id,sub_type也是un_set

复现 Bug

import asyncio
import websockets

async def listen():
uri = "ws:https://"
async with websockets.connect(uri) as websocket:
while True:
event = await websocket.recv()
print(event)

asyncio.run(listen())

系统信息

  • Shamrock 版本: v1.0.9.r367.675a7a5-arm64
  • Android 版本: 12
  • LSPosed 框架版本: lspatch api93
  • 设备的制造商和型号:
  • 设备的 CPU 架构:
@sckiyo sckiyo added the bug Something isn't working label Feb 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant