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

群消息接收异常 #30

Closed
Logiase opened this issue Jan 12, 2020 · 7 comments
Closed

群消息接收异常 #30

Logiase opened this issue Jan 12, 2020 · 7 comments
Assignees
Labels
M 优先级: 主要 t:bug 类型: bug x:protocol 属性: 协议相关

Comments

@Logiase
Copy link

Logiase commented Jan 12, 2020

版本 0.10.6

suspend fun Bot.messageDSL() {
    subscribeGroupMessages {
        contains("test") {
            reply("test from " + sender.group)
        }
    }
}

错误

java.io.EOFException: Not enough data in packet (2) to read 4 byte(s)
	at kotlinx.io.core.ByteReadPacketBase.notEnoughBytesAvailable(Packet.kt:675)
	at kotlinx.io.core.ByteReadPacketBase.access$notEnoughBytesAvailable(Packet.kt:15)
	at kotlinx.io.core.ByteReadPacketBase.readIntSlow(Packet.kt:989)
	at kotlinx.io.core.ByteReadPacketBase.readInt(Packet.kt:201)
	at net.mamoe.mirai.timpc.network.packet.action.GroupPacket.decode-awkMUvk(GroupPacket.kt:702)
	at net.mamoe.mirai.timpc.network.TIMPCBotNetworkHandler$BotSocketAdapter$processReceive$2.invokeSuspend(TIMPCBotNetworkHandler.kt:151)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:241)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms
	at kotlinx.coroutines.TimeoutKt.TimeoutCancellationException(Timeout.kt:126)
	at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:92)
	at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt:491)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:270)
	at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:68)
	at java.base/java.lang.Thread.run(Thread.java:834)
java.lang.IllegalStateException: Cannot obtain group info for id <<GROUP_NUMBER>>
	at net.mamoe.mirai.timpc.TIMPCBotBase.getGroup(TIMPCBot.kt:312)
	at net.mamoe.mirai.timpc.TIMPCBotBase$getGroup$4.invokeSuspend(TIMPCBot.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.ResumeModeKt.resumeUninterceptedWithExceptionMode(ResumeMode.kt:56)
	at kotlinx.coroutines.TimeoutCoroutine.afterCompletionInternal(Timeout.kt:98)
	at kotlinx.coroutines.JobSupport.completeStateFinalization(JobSupport.kt:310)
	at kotlinx.coroutines.JobSupport.tryFinalizeFinishingState(JobSupport.kt:236)
	at kotlinx.coroutines.JobSupport.tryMakeCompletingSlowPath(JobSupport.kt:849)
	at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:811)
	at kotlinx.coroutines.JobSupport.makeCompletingOnce$kotlinx_coroutines_core(JobSupport.kt:787)
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:111)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:334)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
@Him188
Copy link
Member

Him188 commented Jan 12, 2020

谢谢,但TIMPC协议不再更新了,现在在做安卓的。还需要一段时间做好

@Him188
Copy link
Member

Him188 commented Jan 12, 2020

这个群是不是讨论组?

@spianmo
Copy link

spianmo commented Jan 12, 2020

一样的情况,有的群没问题有的群有问题,群是正常的群(千人群),不知道是不是群号码是11位的原因

@Him188 Him188 added t:bug 类型: bug x:protocol 属性: 协议相关 M 优先级: 主要 labels Jan 12, 2020
@Him188 Him188 self-assigned this Jan 12, 2020
@Him188
Copy link
Member

Him188 commented Jan 12, 2020

方便让我加一下群么, 我去抓包测试就出来

@spianmo
Copy link

spianmo commented Jan 12, 2020

方便让我加一下群么, 我去抓包测试就出来

上面log里有,群号:547902826

java.lang.IllegalStateException: Cannot obtain group info for id 547902826

@Him188
Copy link
Member

Him188 commented Jan 12, 2020

需要回答问题

@spianmo
Copy link

spianmo commented Jan 12, 2020

需要回答问题

答案:二校区理化楼

@Him188 Him188 closed this as completed in a0745d6 Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M 优先级: 主要 t:bug 类型: bug x:protocol 属性: 协议相关
Projects
None yet
Development

No branches or pull requests

3 participants