Skip to content

带atall的推送无法发出,报错{'code': 5, 'msg': '指定对象不存在'} #22

@Book-fall2wish

Description

@Book-fall2wish

检查了群号没有问题,其他不太看得出来
2024-10-15 21:21:09.146 | INFO | starbot.core.room:204 | [开播] 黛尔菲娜_Delphine (30176136)
2024-10-15 21:21:17.738 | INFO | starbot.core.sender:172 | 2214438158 -> 群[807518260] : @全体成员 黛尔菲娜_Delphine 正在直播 【四语歌势】周二悲伤抓鬼\nhttps://live.bilibili.com/30176136[图片]
2024-10-15 21:21:17.807 | ERROR | graia.ariadne.util:126 | Task exception was never retrieved
future: <Task finished name='Task-39776' coro=<Up.connect..live_on() done, defined at /root/venvstarbot/lib/python3.10/site-packages/starbot/core/room.py:177> exception=UnknownTarget('对象位置未知, 不存在或不可及.', {'code': 5, 'msg': '指定对象不存在'})>
Traceback (most recent call last):

File "/root/venvstarbot/lib/python3.10/site-packages/starbot/core/room.py", line 250, in live_on
await self.__bot.send_live_on_at(self)
│ └ Up(uid=3494369332038563, targets=[PushTarget(id=2735642380, type=<PushType.Friend: 0>, live_on=LiveOn(enabled=False, message=...
└ Up(uid=3494369332038563, targets=[PushTarget(id=2735642380, type=<PushType.Friend: 0>, live_on=LiveOn(enabled=False, message=...
File "/root/venvstarbot/lib/python3.10/site-packages/starbot/core/sender.py", line 349, in send_live_on_at
bot_info = await self.__bot.get_member(target.id, self.qq)
│ │ │ │ └ 2214438158
│ │ │ └ Bot(qq=2214438158, ups=[Up(uid=3494369332038563, targets=[PushTarget(id=2735642380, type=<PushType.Friend: 0>, live_on=LiveOn...
│ │ └ 870139435
│ └ PushTarget(id=870139435, type=<PushType.Group: 1>, live_on=LiveOn(enabled=True, message='{atall} {uname} 正在直播 {title}\n{url}{...
└ Bot(qq=2214438158, ups=[Up(uid=3494369332038563, targets=[PushTarget(id=2735642380, type=<PushType.Friend: 0>, live_on=LiveOn...
File "/root/venvstarbot/lib/python3.10/site-packages/graia/ariadne/app.py", line 1459, in get_member
await self.connection.call(
│ │ └ <function ConnectionInterface.call at 0x7fac4b1fc0>
│ └ <graia.ariadne.connection.ConnectionInterface object at 0x7f881ef3d0>
└ <graia.ariadne.app.Ariadne object at 0x7f881eddb0>
File "/root/venvstarbot/lib/python3.10/site-packages/graia/ariadne/connection/init.py", line 202, in call
return await connection.call(command, method, params, in_session=in_session)
│ │ │ │ │ └ True
│ │ │ │ └ {'target': 870139435, 'memberId': 2214438158}
│ │ │ └ <CallMethod.RESTGET: 'get'>
│ │ └ 'memberInfo'
│ └ <function WebsocketConnectionMixin.call at 0x7fac4b1870>
└ <WebsocketClientConnection with 2 callbacks>
File "/root/venvstarbot/lib/python3.10/site-packages/graia/ariadne/connection/ws.py", line 116, in call
return await fut
└ <Future finished exception=UnknownTarget('对象位置未知, 不存在或不可及.', {'code': 5, 'msg': '指定对象不存在'})>

graia.ariadne.exception.UnknownTarget: ('对象位置未知, 不存在或不可及.', {'code': 5, 'msg': '指定对象不存在'})

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions