Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalStateException: Failed to modify admin #2370

Closed
MrY-Cat opened this issue Dec 2, 2022 · 3 comments · Fixed by #2711
Closed

java.lang.IllegalStateException: Failed to modify admin #2370

MrY-Cat opened this issue Dec 2, 2022 · 3 comments · Fixed by #2711
Labels
N 优先级: 一般 s:core 子系统: mirai-core t:bug 类型: bug
Milestone

Comments

@MrY-Cat
Copy link
Contributor

MrY-Cat commented Dec 2, 2022

问题描述

似乎是设置/取消管理员失败

复现

分别于2022-11-22日19:58:48和19:59:35发生了两次,复现方法未知

mirai-core 版本

2.13.0-M1

bot-protocol

ANDROID_PAD

其他组件版本

No response

系统日志

java.lang.IllegalStateException: Failed to modify admin, cause: 
	at net.mamoe.mirai.internal.contact.NormalMemberImpl.modifyAdmin(NormalMemberImpl.kt:215)
	at net.mamoe.mirai.internal.contact.NormalMemberImpl$modifyAdmin$1.invokeSuspend(NormalMemberImpl.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

网络日志

No response

补充信息

No response

@Karlatemp
Copy link
Member

在哪个群执行的这个操作,确认这个群的群管理人数是否已经达到上限,需要提供更多信息

@Him188 Him188 added t:bug 类型: bug N 优先级: 一般 s:core 子系统: mirai-core labels Dec 6, 2022
@Him188 Him188 added this to the Backlog milestone Dec 6, 2022
@MrY-Cat
Copy link
Contributor Author

MrY-Cat commented Dec 14, 2022

在哪个群执行的这个操作,确认这个群的群管理人数是否已经达到上限,需要提供更多信息

当时不知道哪个群,在自己群用添加管理超过上限复现了一下,确实是因为超过上限))

@MrY-Cat
Copy link
Contributor Author

MrY-Cat commented Dec 14, 2022

那问题就转变成了特性申请了:可以加个判断管理数是否达到上限或者判断群规模的功能(

@Karlatemp Karlatemp modified the milestones: Backlog, 2.15.0 Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
N 优先级: 一般 s:core 子系统: mirai-core t:bug 类型: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants