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

疑似最新的风控 #2345

Open
RealSeek opened this issue Nov 12, 2022 · 23 comments
Open

疑似最新的风控 #2345

RealSeek opened this issue Nov 12, 2022 · 23 comments
Labels
x:question 标签: 需要更多信息

Comments

@RealSeek
Copy link

RealSeek commented Nov 12, 2022

问题描述

使用Mirai 2.13.0 版本 登录滑块验证码后提示
看了一眼论坛也有其他人出现此情况
怀疑是最新的风控
已尝试过论坛的 无法登录的临时处理方案 内的解决办法并无效果

复现

登录
过滑块验证填入ticket后出现

mirai-core 版本

2.13.0

bot-protocol

ANDROID_PHONE

其他组件版本

No response

系统日志

2022-11-12 14:29:29 E/main: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(), code=237, title=安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=)
net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(), code=237, title=安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=)
        at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:309)
        at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.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

补充信息

此情况的论坛链接: 论坛链接

@cssxsh
Copy link
Contributor

cssxsh commented Nov 12, 2022

ANDROID_PHONE 风控等级比较严, 还是建议换一个协议

@RealSeek
Copy link
Author

RealSeek commented Nov 12, 2022

ANDROID_PHONE 风控等级比较严, 还是建议换一个协议

尝试过更换协议

ANDROID_PAD 一样的问题

ANDROID_WATCH

2022-11-12 16:35:27 E/main: net.mamoe.mirai.internal.utils.crypto.DecryptionFailedException
net.mamoe.mirai.internal.utils.crypto.DecryptionFailedException
        at net.mamoe.mirai.internal.utils.crypto.TEA.fail(TEA.kt:299)
        at net.mamoe.mirai.internal.utils.crypto.TEA.doOption$decrypt(TEA.kt:275)
        at net.mamoe.mirai.internal.utils.crypto.TEA.doOption(TEA.kt:295)
        at net.mamoe.mirai.internal.utils.crypto.TEA.decrypt(TEA.kt:319)
        at net.mamoe.mirai.internal.utils.crypto.TEA.decrypt$default(TEA.kt:318)
        at net.mamoe.mirai.internal.network.protocol.packet.login.wtlogin.WtLoginExt.analyzeTlv106(WtLoginExt.kt:623)
        at net.mamoe.mirai.internal.network.protocol.packet.login.WtLogin$Login.onLoginSuccess(WtLogin.kt:368)
        at net.mamoe.mirai.internal.network.protocol.packet.login.WtLogin$Login.decode(WtLogin.kt:231)
        at net.mamoe.mirai.internal.network.components.PacketCodecImpl.processBody(PacketCodec.kt:491)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline.processBody(CommonNetworkHandler.kt:157)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline.access$processBody(CommonNetworkHandler.kt:102)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline$1$3$1.invokeSuspend(CommonNetworkHandler.kt:126)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline$1$3$1.invoke(CommonNetworkHandler.kt)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline$1$3$1.invoke(CommonNetworkHandler.kt)
        at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:55)
        at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
        at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
        at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
        at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
        at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47)
        at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline$1.invokeSuspend(CommonNetworkHandler.kt:126)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Unknown Source)

MACOS 成功登录

IPAD

2022-11-12 16:38:16 E/main: java.lang.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
java.lang.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
        at net.mamoe.mirai.internal.network.components.PacketCodecException.<init>(PacketCodec.kt:72)
        at net.mamoe.mirai.internal.network.components.PacketCodecImpl.parseSsoFrame(PacketCodec.kt:178)
        at net.mamoe.mirai.internal.network.components.PacketCodecImpl.decodeRaw(PacketCodec.kt:127)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline.decodePacket(CommonNetworkHandler.kt:148)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline.access$decodePacket(CommonNetworkHandler.kt:102)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline$1.invokeSuspend(CommonNetworkHandler.kt:125)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Unknown Source)
        Suppressed: net.mamoe.mirai.internal.network.components.PacketCodecException: java.lang.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
                ... 14 more
        Caused by: [CIRCULAR REFERENCE: java.lang.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.]

此外在MACOS成功登录后 ANDROID_PHONE 的登录报错也变成了

2022-11-12 16:38:16 E/main: java.lang.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
java.lang.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
        at net.mamoe.mirai.internal.network.components.PacketCodecException.<init>(PacketCodec.kt:72)
        at net.mamoe.mirai.internal.network.components.PacketCodecImpl.parseSsoFrame(PacketCodec.kt:178)
        at net.mamoe.mirai.internal.network.components.PacketCodecImpl.decodeRaw(PacketCodec.kt:127)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline.decodePacket(CommonNetworkHandler.kt:148)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline.access$decodePacket(CommonNetworkHandler.kt:102)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline$1.invokeSuspend(CommonNetworkHandler.kt:125)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Unknown Source)
        Suppressed: net.mamoe.mirai.internal.network.components.PacketCodecException: java.lang.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
                ... 14 more
        Caused by: [CIRCULAR REFERENCE: java.lang.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.]

个人的能力不足 希望我提供的信息足够的准确能够帮助到排查出问题

@Karlatemp
Copy link
Member

你怎么操作的滑块验证

@RealSeek
Copy link
Author

你怎么操作的滑块验证

复制滑块验证码的网址到浏览器后f12获取ticket
填入后回车

@Karlatemp
Copy link
Member

文档从来没有提过可以直接通过电脑打开浏览器, 我们全部的文档的操作都是在手机上执行的

这属于你自己操作问题

@Karlatemp
Copy link
Member

Karlatemp commented Nov 12, 2022

如果可以的话,请您告诉我们为什么您会认为可以直接在浏览器上操作,我们会在近期修改相关的文档/说明 等

@RealSeek
Copy link
Author

文档从来没有提过可以直接通过电脑打开浏览器, 我们全部的文档的操作都是在手机上执行的

这属于你自己操作问题

但后续的错误甚至没有弹出滑块验证 这是因为我操作有问题么

@Karlatemp
Copy link
Member

Karlatemp commented Nov 12, 2022

因为设备信息和账户登录点已经被ban了,就是因为错误的操作滑块验证

@RealSeek
Copy link
Author

RealSeek commented Nov 12, 2022

如果可以的话,请您告诉我们为什么您会认为可以直接在浏览器上操作,我们会在近期修改相关的文档/说明 等

原来不能么 实际上我之前一直是在浏览器上获取ticket的。。。 而且也没问题

@Karlatemp Karlatemp added the x:question 标签: 需要更多信息 label Nov 12, 2022
@Karlatemp
Copy link
Member

如果可以的话也就不会有 连接至手机 这一步的说明了

这是可以反推出来的

@RealSeek
Copy link
Author

RealSeek commented Nov 12, 2022

如果可以的话也就不会有 连接至手机 这一步的说明了

这是可以反推出来的

那我回家后按照文档再试试

@cssxsh
Copy link
Contributor

cssxsh commented Nov 12, 2022

如果可以的话也就不会有 连接至手机 这一步的说明了

这是可以反推出来的

这么操作的前提是家里云,如果服务器网络 和你本地(浏览器)网络 差距较大,就容易报这个问题

@WorldLeen
Copy link

我也遇到了一样的问题,现在完全没法登陆了,腾讯真的是太故意恶心人了

@RealSeek
Copy link
Author

如果可以的话,请您告诉我们为什么您会认为可以直接在浏览器上操作,我们会在近期修改相关的文档/说明 等

image

@RealSeek
Copy link
Author

如果可以的话也就不会有 连接至手机 这一步的说明了
这是可以反推出来的

那我回家后按照文档再试试

使用 TxCaptchaHelper 正常登录了 但是为什么我以前使用浏览器也可以完成验证,突然就不行了呢

@Nambers
Copy link
Contributor

Nambers commented Nov 15, 2022

如果可以的话也就不会有 连接至手机 这一步的说明了
这是可以反推出来的

那我回家后按照文档再试试

使用 TxCaptchaHelper 正常登录了 但是为什么我以前使用浏览器也可以完成验证,突然就不行了呢

我也一直用浏览器来着,然后最近几天也登录没用了。
然后我试了一下:

  1. 在电脑上登qq电脑版, 然后用MACOS协议登录登录 + 浏览器(没用chrome的设备模拟)划滑块, 他报错版本过低.
  2. 然后删除device.json, 刷新DNS, 然后一样用用MACOS协议登录 + 在浏览器上过了滑块(没用chrome的设备模拟) + 他发了个短信验证码,就可以登上了

感觉和上面cssxsh的猜测差不多估计

@Nambers
Copy link
Contributor

Nambers commented Nov 15, 2022

此外, 关于 returnCode = -10003, 我这里有完整一点的日志,基本上就在可以登录 MACOS 的 device.json 和 cache下登录 android_phone 协议就会稳定复现. 然后切换回 MACOS 协议也可以正常登录:

2022-11-15 10:52:14 V/Net <bot id>: Decoded: wtlogin.exchange_emp
2022-11-15 10:52:14 D/Net <bot id>: Packet Handling Processor: receive packet wtlogin.exchange_emp
2022-11-15 10:52:14 V/Net <bot id>: Recv: wtlogin.exchange_emp LoginPacketResponse.Success
2022-11-15 10:52:14 I/Bot <bot id>: Saved account secrets to local cache for fast login.
2022-11-15 10:52:14 V/Net <bot id>: Send: StatSvc.register(online)
2022-11-15 10:52:14 I/Net <bot id>: Native sender: Value(net.mamoe.mirai.internal.network.protocol.packet.OutgoingPacketWithRespType@77422a10)
2022-11-15 10:52:14 V/Net <bot id>: Decoding packet: Value(ByteReadPacket(108 bytes remaining))
2022-11-15 10:52:14 V/Net <bot id>: Decoding: len=108, value=00 00 00 0A 02 00 00 00 00 0E 33 30 38 35 35 30 35 39 34 39 B5 59 22 9D 2A E2 38 80 12 46 6B A6 28 C2 7C E9 D6 56 0F B1 93 56 FB 38 FE D7 DD D2 04 3B 66 DB A7 13 38 8D 75 2E A9 04 C3 52 AD 4D B9 07 7A D0 7A 3E E0 19 39 D1 1E 6C 0D DE 9B 99 81 81 21 2D E0 F7 8B 13 EA D8 78 22 39 71 09 C2 36 BC B0 1A 64 B8 19 D3 00 6A D9 29
2022-11-15 10:52:14 V/Packet: 开始处理一个包
2022-11-15 10:52:14 V/Packet: sequenceId = 69167
2022-11-15 10:52:14 E/Net <bot id>: Error while decoding packet 'ByteReadPacket(0 bytes remaining)'
net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
    at 0   ???                                 7ff77180d240       kfun:kotlin.Throwable#<init>(kotlin.Throwable?){} + 0
    at 1   ???                                 7ff771805f10       kfun:kotlin.Exception#<init>(kotlin.Throwable?){} + 0
    at 2   ???                                 7ff77214c9d0       kfun:net.mamoe.mirai.internal.network.handler.selector.NetworkException#<init>(kotlin.Boolean;kotlin.Throwable?){} + 0
    at 3   ???                                 7ff7720fc8f0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.Throwable;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
    at 4   ???                                 7ff7720fcad0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.String;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
    at 5   ???                                 7ff7720f6630       kfun:net.mamoe.mirai.internal.network.components.PacketCodecImpl.parseSsoFrame#internal + 0
    at 6   ???                                 7ff7720f37d0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecImpl#decodeRaw(net.mamoe.mirai.internal.network.components.SsoSession;io.ktor.utils.io.core.ByteReadPacket){}net.mamoe.mirai.internal.network.components.RawIncomingPacket + 0
    at 7   ???                                 7ff77211e200       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.decodePacket#internal + 0
    at 8   ???                                 7ff772121570       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.$<init>$lambda$6COROUTINE$307.invokeSuspend#internal + 0
    at 9   ???                                 7ff771811e70       kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 0
    at 10  ???                                 7ff771a7a300       kfun:kotlinx.coroutines.DispatchedTask#run(){} + 0
    at 11  ???                                 7ff771aaefe0       kfun:kotlinx.coroutines.WorkerDispatcher.dispatch$lambda$0#internal + 0
    at 12  ???                                 7ff771aaf610       kfun:kotlinx.coroutines.WorkerDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$810.invoke#internal + 0
    at 13  ???                                 7ff771aaf700       kfun:kotlinx.coroutines.WorkerDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$810.$<bridge-UNN>invoke(){}#internal + 0
    at 14  ???                                 7ff77181d960       WorkerLaunchpad + 0
    at 15  ???                                 7ff772e8a580       _ZN6Worker19processQueueElementEb + 0
    at 16  ???                                 7ff772e8a430       _ZN12_GLOBAL__N_113workerRoutineEPv + 0
    at 17  ???                                 7ff772e94ab0       pthread_create_wrapper + 0
    at 18  ???                                 7ffa77cde60c       0x0 + 140713728534028
    at 19  ???                                 7ffa77cde690       0x0 + 140713728534160
    at 20  ???                                 7ffa77022430       0x0 + 140713715180592
    at 21  ???                                 7ffa77fcdf90       0x0 + 140713731612560
Caused by: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
    at 0   ???                                 7ff77180d1c0       kfun:kotlin.Throwable#<init>(kotlin.String?){} + 0
    at 1   ???                                 7ff771805dd0       kfun:kotlin.Exception#<init>(kotlin.String?){} + 0
    at 2   ???                                 7ff771806050       kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 0
    at 3   ???                                 7ff771806740       kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 0
    at 4   ???                                 7ff7720fcad0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.String;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
    ... and 17 more common stack frames skipped

2022-11-15 10:52:14 W/Net <bot id>: Exception in resumeConnection.
net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
    at 0   ???                                 7ff77180d240       kfun:kotlin.Throwable#<init>(kotlin.Throwable?){} + 0
    at 1   ???                                 7ff771805f10       kfun:kotlin.Exception#<init>(kotlin.Throwable?){} + 0
    at 2   ???                                 7ff77214c9d0       kfun:net.mamoe.mirai.internal.network.handler.selector.NetworkException#<init>(kotlin.Boolean;kotlin.Throwable?){} + 0
    at 3   ???                                 7ff7720fc8f0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.Throwable;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
    at 4   ???                                 7ff7720fcad0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.String;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
    at 5   ???                                 7ff7720f6630       kfun:net.mamoe.mirai.internal.network.components.PacketCodecImpl.parseSsoFrame#internal + 0
    at 6   ???                                 7ff7720f37d0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecImpl#decodeRaw(net.mamoe.mirai.internal.network.components.SsoSession;io.ktor.utils.io.core.ByteReadPacket){}net.mamoe.mirai.internal.network.components.RawIncomingPacket + 0
    at 7   ???                                 7ff77211e200       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.decodePacket#internal + 0
    at 8   ???                                 7ff772121570       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.$<init>$lambda$6COROUTINE$307.invokeSuspend#internal + 0
    at 9   ???                                 7ff771811e70       kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 0
    at 10  ???                                 7ff771a7a300       kfun:kotlinx.coroutines.DispatchedTask#run(){} + 0
    at 11  ???                                 7ff771aaefe0       kfun:kotlinx.coroutines.WorkerDispatcher.dispatch$lambda$0#internal + 0
    at 12  ???                                 7ff771aaf610       kfun:kotlinx.coroutines.WorkerDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$810.invoke#internal + 0
    at 13  ???                                 7ff771aaf700       kfun:kotlinx.coroutines.WorkerDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$810.$<bridge-UNN>invoke(){}#internal + 0
    at 14  ???                                 7ff77181d960       WorkerLaunchpad + 0
    at 15  ???                                 7ff772e8a580       _ZN6Worker19processQueueElementEb + 0
    at 16  ???                                 7ff772e8a430       _ZN12_GLOBAL__N_113workerRoutineEPv + 0
    at 17  ???                                 7ff772e94ab0       pthread_create_wrapper + 0
    at 18  ???                                 7ffa77cde60c       0x0 + 140713728534028
    at 19  ???                                 7ffa77cde690       0x0 + 140713728534160
    at 20  ???                                 7ffa77022430       0x0 + 140713715180592
    at 21  ???                                 7ffa77fcdf90       0x0 + 140713731612560
    Suppressed: StateSwitchingException(old=StateConnecting, new=StateClosed, cause=net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.)
        at 0   ???                                 7ff77180d1c0       kfun:kotlin.Throwable#<init>(kotlin.String?){} + 0

        at 1   ???                                 7ff771805dd0       kfun:kotlin.Exception#<init>(kotlin.String?){} + 0

        at 2   ???                                 7ff771806050       kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 0
        at 3   ???                                 7ff771806740       kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 0
        at 4   ???                                 7ff771812f40       kfun:kotlin.coroutines.cancellation.CancellationException#<init>(kotlin.String?){} + 0
        at 5   ???                                 7ff77213a8d0       kfun:net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.StateSwitchingException#<init>(net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;kotlin.Throwable?){} + 0
        at 6   ???                                 7ff77213ab60       kfun:net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.StateSwitchingException#<init>(net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;kotlin.Throwable?;kotlin.Int;kotlin.native.internal.DefaultConstructorMarker?){} + 0
        at 7   ???                                 7ff77213b6e0       kfun:net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport#setStateImpl(kotlin.reflect.KClass<0:0>;kotlin.Function0<0:0>){0§<net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl>}0:0? + 0
        at 8   ???                                 7ff77211d170       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler#handleExceptionInDecoding(kotlin.Throwable){} + 0
        at 9   ???                                 7ff772121570       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.$<init>$lambda$6COROUTINE$307.invokeSuspend#internal + 0
        ... and 13 more common stack frames skipped
    Caused by: [CIRCULAR REFERENCE, SEE ABOVE: net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.]
    Caused by: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
        at 0   ???                                 7ff77180d1c0       kfun:kotlin.Throwable#<init>(kotlin.String?){} + 0

        at 1   ???                                 7ff771805dd0       kfun:kotlin.Exception#<init>(kotlin.String?){} + 0

        at 2   ???                                 7ff771806050       kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 0
        at 3   ???                                 7ff771806740       kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 0
        at 4   ???                                 7ff7720fcad0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.String;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
        ... and 17 more common stack frames skipped
Caused by: [CIRCULAR REFERENCE, SEE ABOVE: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.]

2022-11-15 10:52:14 W/Net <bot id>: Network selector received exception, closing bot. (net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.)
2022-11-15 10:52:14 W/Net <bot id>: Network selector received exception, closing bot. (net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.)
Uncaught Kotlin exception: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
    at 0   ???                                 7ff77180d1c0       kfun:kotlin.Throwable#<init>(kotlin.String?){} + 0
    at 1   ???                                 7ff771805dd0       kfun:kotlin.Exception#<init>(kotlin.String?){} + 0
    at 2   ???                                 7ff771806050       kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 0
    at 3   ???                                 7ff771806740       kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 0
    at 4   ???                                 7ff7720fcad0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.String;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
    at 5   ???                                 7ff7720f6630       kfun:net.mamoe.mirai.internal.network.components.PacketCodecImpl.parseSsoFrame#internal + 0
    at 6   ???                                 7ff7720f37d0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecImpl#decodeRaw(net.mamoe.mirai.internal.network.components.SsoSession;io.ktor.utils.io.core.ByteReadPacket){}net.mamoe.mirai.internal.network.components.RawIncomingPacket + 0
    at 7   ???                                 7ff77211e200       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.decodePacket#internal + 0
    at 8   ???                                 7ff772121570       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.$<init>$lambda$6COROUTINE$307.invokeSuspend#internal + 0
    at 9   ???                                 7ff771811e70       kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 0
    at 10  ???                                 7ff771a7a300       kfun:kotlinx.coroutines.DispatchedTask#run(){} + 0
    at 11  ???                                 7ff771aaefe0       kfun:kotlinx.coroutines.WorkerDispatcher.dispatch$lambda$0#internal + 0
    at 12  ???                                 7ff771aaf610       kfun:kotlinx.coroutines.WorkerDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$810.invoke#internal + 0
    at 13  ???                                 7ff771aaf700       kfun:kotlinx.coroutines.WorkerDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$810.$<bridge-UNN>invoke(){}#internal + 0
    at 14  ???                                 7ff77181d960       WorkerLaunchpad + 0
    at 15  ???                                 7ff772e8a580       _ZN6Worker19processQueueElementEb + 0
    at 16  ???                                 7ff772e8a430       _ZN12_GLOBAL__N_113workerRoutineEPv + 0
    at 17  ???                                 7ff772e94ab0       pthread_create_wrapper + 0
    at 18  ???                                 7ffa77cde60c       0x0 + 140713728534028
    at 19  ???                                 7ffa77cde690       0x0 + 140713728534160
    at 20  ???                                 7ffa77022430       0x0 + 140713715180592
    at 21  ???                                 7ffa77fcdf90       0x0 + 140713731612560
    Suppressed: net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
        at 0   ???                                 7ff77180d240       kfun:kotlin.Throwable#<init>(kotlin.Throwable?){} + 0
        at 1   ???                                 7ff771805f10       kfun:kotlin.Exception#<init>(kotlin.Throwable?){} + 0
        at 2   ???                                 7ff77214c9d0       kfun:net.mamoe.mirai.internal.network.handler.selector.NetworkException#<init>(kotlin.Boolean;kotlin.Throwable?){} + 0
        at 3   ???                                 7ff7720fc8f0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.Throwable;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0

        at 4   ???                                 7ff7720fcad0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.String;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
        ... and 17 more common stack frames skipped
        Suppressed: StateSwitchingException(old=StateConnecting, new=StateClosed, cause=net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.)
            at 0   ???                                 7ff77180d1c0       kfun:kotlin.Throwable#<init>(kotlin.String?){} + 0
            at 1   ???                                 7ff771805dd0       kfun:kotlin.Exception#<init>(kotlin.String?){} + 0
            at 2   ???                                 7ff771806050       kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 0
            at 3   ???                                 7ff771806740       kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 0
            at 4   ???                                 7ff771812f40       kfun:kotlin.coroutines.cancellation.CancellationException#<init>(kotlin.String?){} + 0
            at 5   ???                                 7ff77213a8d0       kfun:net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.StateSwitchingException#<init>(net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;kotlin.Throwable?){} + 0
            at 6   ???                                 7ff77213ab60       kfun:net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.StateSwitchingException#<init>(net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;kotlin.Throwable?;kotlin.Int;kotlin.native.internal.DefaultConstructorMarker?){} + 0
            at 7   ???                                 7ff77213b6e0       kfun:net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport#setStateImpl(kotlin.reflect.KClass<0:0>;kotlin.Function0<0:0>){0§<net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl>}0:0? + 0
            at 8   ???                                 7ff77211d170       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler#handleExceptionInDecoding(kotlin.Throwable){} + 0
            at 9   ???                                 7ff772121570       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.$<init>$lambda$6COROUTINE$307.invokeSuspend#internal + 0
            ... and 13 more common stack frames skipped
        Caused by: [CIRCULAR REFERENCE, SEE ABOVE: net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.]
        Caused by: [CIRCULAR REFERENCE, SEE ABOVE: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.]
    Caused by: [CIRCULAR REFERENCE, SEE ABOVE: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.]

@LWBmljx
Copy link

LWBmljx commented Nov 16, 2022

此外, 关于 returnCode = -10003, 我这里有完整一点的日志,基本上就在可以登录 MACOS 的 device.json 和 cache下登录 android_phone 协议就会稳定复现. 然后切换回 MACOS 协议也可以正常登录:

2022-11-15 10:52:14 V/Net <bot id>: Decoded: wtlogin.exchange_emp
2022-11-15 10:52:14 D/Net <bot id>: Packet Handling Processor: receive packet wtlogin.exchange_emp
2022-11-15 10:52:14 V/Net <bot id>: Recv: wtlogin.exchange_emp LoginPacketResponse.Success
2022-11-15 10:52:14 I/Bot <bot id>: Saved account secrets to local cache for fast login.
2022-11-15 10:52:14 V/Net <bot id>: Send: StatSvc.register(online)
2022-11-15 10:52:14 I/Net <bot id>: Native sender: Value(net.mamoe.mirai.internal.network.protocol.packet.OutgoingPacketWithRespType@77422a10)
2022-11-15 10:52:14 V/Net <bot id>: Decoding packet: Value(ByteReadPacket(108 bytes remaining))
2022-11-15 10:52:14 V/Net <bot id>: Decoding: len=108, value=00 00 00 0A 02 00 00 00 00 0E 33 30 38 35 35 30 35 39 34 39 B5 59 22 9D 2A E2 38 80 12 46 6B A6 28 C2 7C E9 D6 56 0F B1 93 56 FB 38 FE D7 DD D2 04 3B 66 DB A7 13 38 8D 75 2E A9 04 C3 52 AD 4D B9 07 7A D0 7A 3E E0 19 39 D1 1E 6C 0D DE 9B 99 81 81 21 2D E0 F7 8B 13 EA D8 78 22 39 71 09 C2 36 BC B0 1A 64 B8 19 D3 00 6A D9 29
2022-11-15 10:52:14 V/Packet: 开始处理一个包
2022-11-15 10:52:14 V/Packet: sequenceId = 69167
2022-11-15 10:52:14 E/Net <bot id>: Error while decoding packet 'ByteReadPacket(0 bytes remaining)'
net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
    at 0   ???                                 7ff77180d240       kfun:kotlin.Throwable#<init>(kotlin.Throwable?){} + 0
    at 1   ???                                 7ff771805f10       kfun:kotlin.Exception#<init>(kotlin.Throwable?){} + 0
    at 2   ???                                 7ff77214c9d0       kfun:net.mamoe.mirai.internal.network.handler.selector.NetworkException#<init>(kotlin.Boolean;kotlin.Throwable?){} + 0
    at 3   ???                                 7ff7720fc8f0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.Throwable;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
    at 4   ???                                 7ff7720fcad0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.String;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
    at 5   ???                                 7ff7720f6630       kfun:net.mamoe.mirai.internal.network.components.PacketCodecImpl.parseSsoFrame#internal + 0
    at 6   ???                                 7ff7720f37d0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecImpl#decodeRaw(net.mamoe.mirai.internal.network.components.SsoSession;io.ktor.utils.io.core.ByteReadPacket){}net.mamoe.mirai.internal.network.components.RawIncomingPacket + 0
    at 7   ???                                 7ff77211e200       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.decodePacket#internal + 0
    at 8   ???                                 7ff772121570       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.$<init>$lambda$6COROUTINE$307.invokeSuspend#internal + 0
    at 9   ???                                 7ff771811e70       kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 0
    at 10  ???                                 7ff771a7a300       kfun:kotlinx.coroutines.DispatchedTask#run(){} + 0
    at 11  ???                                 7ff771aaefe0       kfun:kotlinx.coroutines.WorkerDispatcher.dispatch$lambda$0#internal + 0
    at 12  ???                                 7ff771aaf610       kfun:kotlinx.coroutines.WorkerDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$810.invoke#internal + 0
    at 13  ???                                 7ff771aaf700       kfun:kotlinx.coroutines.WorkerDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$810.$<bridge-UNN>invoke(){}#internal + 0
    at 14  ???                                 7ff77181d960       WorkerLaunchpad + 0
    at 15  ???                                 7ff772e8a580       _ZN6Worker19processQueueElementEb + 0
    at 16  ???                                 7ff772e8a430       _ZN12_GLOBAL__N_113workerRoutineEPv + 0
    at 17  ???                                 7ff772e94ab0       pthread_create_wrapper + 0
    at 18  ???                                 7ffa77cde60c       0x0 + 140713728534028
    at 19  ???                                 7ffa77cde690       0x0 + 140713728534160
    at 20  ???                                 7ffa77022430       0x0 + 140713715180592
    at 21  ???                                 7ffa77fcdf90       0x0 + 140713731612560
Caused by: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
    at 0   ???                                 7ff77180d1c0       kfun:kotlin.Throwable#<init>(kotlin.String?){} + 0
    at 1   ???                                 7ff771805dd0       kfun:kotlin.Exception#<init>(kotlin.String?){} + 0
    at 2   ???                                 7ff771806050       kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 0
    at 3   ???                                 7ff771806740       kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 0
    at 4   ???                                 7ff7720fcad0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.String;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
    ... and 17 more common stack frames skipped

2022-11-15 10:52:14 W/Net <bot id>: Exception in resumeConnection.
net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
    at 0   ???                                 7ff77180d240       kfun:kotlin.Throwable#<init>(kotlin.Throwable?){} + 0
    at 1   ???                                 7ff771805f10       kfun:kotlin.Exception#<init>(kotlin.Throwable?){} + 0
    at 2   ???                                 7ff77214c9d0       kfun:net.mamoe.mirai.internal.network.handler.selector.NetworkException#<init>(kotlin.Boolean;kotlin.Throwable?){} + 0
    at 3   ???                                 7ff7720fc8f0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.Throwable;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
    at 4   ???                                 7ff7720fcad0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.String;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
    at 5   ???                                 7ff7720f6630       kfun:net.mamoe.mirai.internal.network.components.PacketCodecImpl.parseSsoFrame#internal + 0
    at 6   ???                                 7ff7720f37d0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecImpl#decodeRaw(net.mamoe.mirai.internal.network.components.SsoSession;io.ktor.utils.io.core.ByteReadPacket){}net.mamoe.mirai.internal.network.components.RawIncomingPacket + 0
    at 7   ???                                 7ff77211e200       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.decodePacket#internal + 0
    at 8   ???                                 7ff772121570       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.$<init>$lambda$6COROUTINE$307.invokeSuspend#internal + 0
    at 9   ???                                 7ff771811e70       kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 0
    at 10  ???                                 7ff771a7a300       kfun:kotlinx.coroutines.DispatchedTask#run(){} + 0
    at 11  ???                                 7ff771aaefe0       kfun:kotlinx.coroutines.WorkerDispatcher.dispatch$lambda$0#internal + 0
    at 12  ???                                 7ff771aaf610       kfun:kotlinx.coroutines.WorkerDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$810.invoke#internal + 0
    at 13  ???                                 7ff771aaf700       kfun:kotlinx.coroutines.WorkerDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$810.$<bridge-UNN>invoke(){}#internal + 0
    at 14  ???                                 7ff77181d960       WorkerLaunchpad + 0
    at 15  ???                                 7ff772e8a580       _ZN6Worker19processQueueElementEb + 0
    at 16  ???                                 7ff772e8a430       _ZN12_GLOBAL__N_113workerRoutineEPv + 0
    at 17  ???                                 7ff772e94ab0       pthread_create_wrapper + 0
    at 18  ???                                 7ffa77cde60c       0x0 + 140713728534028
    at 19  ???                                 7ffa77cde690       0x0 + 140713728534160
    at 20  ???                                 7ffa77022430       0x0 + 140713715180592
    at 21  ???                                 7ffa77fcdf90       0x0 + 140713731612560
    Suppressed: StateSwitchingException(old=StateConnecting, new=StateClosed, cause=net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.)
        at 0   ???                                 7ff77180d1c0       kfun:kotlin.Throwable#<init>(kotlin.String?){} + 0

        at 1   ???                                 7ff771805dd0       kfun:kotlin.Exception#<init>(kotlin.String?){} + 0

        at 2   ???                                 7ff771806050       kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 0
        at 3   ???                                 7ff771806740       kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 0
        at 4   ???                                 7ff771812f40       kfun:kotlin.coroutines.cancellation.CancellationException#<init>(kotlin.String?){} + 0
        at 5   ???                                 7ff77213a8d0       kfun:net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.StateSwitchingException#<init>(net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;kotlin.Throwable?){} + 0
        at 6   ???                                 7ff77213ab60       kfun:net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.StateSwitchingException#<init>(net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;kotlin.Throwable?;kotlin.Int;kotlin.native.internal.DefaultConstructorMarker?){} + 0
        at 7   ???                                 7ff77213b6e0       kfun:net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport#setStateImpl(kotlin.reflect.KClass<0:0>;kotlin.Function0<0:0>){0§<net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl>}0:0? + 0
        at 8   ???                                 7ff77211d170       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler#handleExceptionInDecoding(kotlin.Throwable){} + 0
        at 9   ???                                 7ff772121570       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.$<init>$lambda$6COROUTINE$307.invokeSuspend#internal + 0
        ... and 13 more common stack frames skipped
    Caused by: [CIRCULAR REFERENCE, SEE ABOVE: net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.]
    Caused by: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
        at 0   ???                                 7ff77180d1c0       kfun:kotlin.Throwable#<init>(kotlin.String?){} + 0

        at 1   ???                                 7ff771805dd0       kfun:kotlin.Exception#<init>(kotlin.String?){} + 0

        at 2   ???                                 7ff771806050       kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 0
        at 3   ???                                 7ff771806740       kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 0
        at 4   ???                                 7ff7720fcad0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.String;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
        ... and 17 more common stack frames skipped
Caused by: [CIRCULAR REFERENCE, SEE ABOVE: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.]

2022-11-15 10:52:14 W/Net <bot id>: Network selector received exception, closing bot. (net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.)
2022-11-15 10:52:14 W/Net <bot id>: Network selector received exception, closing bot. (net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.)
Uncaught Kotlin exception: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
    at 0   ???                                 7ff77180d1c0       kfun:kotlin.Throwable#<init>(kotlin.String?){} + 0
    at 1   ???                                 7ff771805dd0       kfun:kotlin.Exception#<init>(kotlin.String?){} + 0
    at 2   ???                                 7ff771806050       kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 0
    at 3   ???                                 7ff771806740       kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 0
    at 4   ???                                 7ff7720fcad0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.String;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
    at 5   ???                                 7ff7720f6630       kfun:net.mamoe.mirai.internal.network.components.PacketCodecImpl.parseSsoFrame#internal + 0
    at 6   ???                                 7ff7720f37d0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecImpl#decodeRaw(net.mamoe.mirai.internal.network.components.SsoSession;io.ktor.utils.io.core.ByteReadPacket){}net.mamoe.mirai.internal.network.components.RawIncomingPacket + 0
    at 7   ???                                 7ff77211e200       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.decodePacket#internal + 0
    at 8   ???                                 7ff772121570       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.$<init>$lambda$6COROUTINE$307.invokeSuspend#internal + 0
    at 9   ???                                 7ff771811e70       kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 0
    at 10  ???                                 7ff771a7a300       kfun:kotlinx.coroutines.DispatchedTask#run(){} + 0
    at 11  ???                                 7ff771aaefe0       kfun:kotlinx.coroutines.WorkerDispatcher.dispatch$lambda$0#internal + 0
    at 12  ???                                 7ff771aaf610       kfun:kotlinx.coroutines.WorkerDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$810.invoke#internal + 0
    at 13  ???                                 7ff771aaf700       kfun:kotlinx.coroutines.WorkerDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$810.$<bridge-UNN>invoke(){}#internal + 0
    at 14  ???                                 7ff77181d960       WorkerLaunchpad + 0
    at 15  ???                                 7ff772e8a580       _ZN6Worker19processQueueElementEb + 0
    at 16  ???                                 7ff772e8a430       _ZN12_GLOBAL__N_113workerRoutineEPv + 0
    at 17  ???                                 7ff772e94ab0       pthread_create_wrapper + 0
    at 18  ???                                 7ffa77cde60c       0x0 + 140713728534028
    at 19  ???                                 7ffa77cde690       0x0 + 140713728534160
    at 20  ???                                 7ffa77022430       0x0 + 140713715180592
    at 21  ???                                 7ffa77fcdf90       0x0 + 140713731612560
    Suppressed: net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.
        at 0   ???                                 7ff77180d240       kfun:kotlin.Throwable#<init>(kotlin.Throwable?){} + 0
        at 1   ???                                 7ff771805f10       kfun:kotlin.Exception#<init>(kotlin.Throwable?){} + 0
        at 2   ???                                 7ff77214c9d0       kfun:net.mamoe.mirai.internal.network.handler.selector.NetworkException#<init>(kotlin.Boolean;kotlin.Throwable?){} + 0
        at 3   ???                                 7ff7720fc8f0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.Throwable;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0

        at 4   ???                                 7ff7720fcad0       kfun:net.mamoe.mirai.internal.network.components.PacketCodecException#<init>(kotlin.String;net.mamoe.mirai.internal.network.components.PacketCodecException.Kind){} + 0
        ... and 17 more common stack frames skipped
        Suppressed: StateSwitchingException(old=StateConnecting, new=StateClosed, cause=net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.)
            at 0   ???                                 7ff77180d1c0       kfun:kotlin.Throwable#<init>(kotlin.String?){} + 0
            at 1   ???                                 7ff771805dd0       kfun:kotlin.Exception#<init>(kotlin.String?){} + 0
            at 2   ???                                 7ff771806050       kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 0
            at 3   ???                                 7ff771806740       kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 0
            at 4   ???                                 7ff771812f40       kfun:kotlin.coroutines.cancellation.CancellationException#<init>(kotlin.String?){} + 0
            at 5   ???                                 7ff77213a8d0       kfun:net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.StateSwitchingException#<init>(net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;kotlin.Throwable?){} + 0
            at 6   ???                                 7ff77213ab60       kfun:net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.StateSwitchingException#<init>(net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl;kotlin.Throwable?;kotlin.Int;kotlin.native.internal.DefaultConstructorMarker?){} + 0
            at 7   ???                                 7ff77213b6e0       kfun:net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport#setStateImpl(kotlin.reflect.KClass<0:0>;kotlin.Function0<0:0>){0§<net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.BaseStateImpl>}0:0? + 0
            at 8   ???                                 7ff77211d170       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler#handleExceptionInDecoding(kotlin.Throwable){} + 0
            at 9   ???                                 7ff772121570       kfun:net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.PacketDecodePipeline.$<init>$lambda$6COROUTINE$307.invokeSuspend#internal + 0
            ... and 13 more common stack frames skipped
        Caused by: [CIRCULAR REFERENCE, SEE ABOVE: net.mamoe.mirai.internal.network.components.PacketCodecException: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.]
        Caused by: [CIRCULAR REFERENCE, SEE ABOVE: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.]
    Caused by: [CIRCULAR REFERENCE, SEE ABOVE: kotlin.IllegalStateException: Received packet returnCode = -10003, which may mean session expired.]

我也存在这种问题,但是我并没有切换登录协议而是一直在使用macos。在我一次使用pc调试(平时是服务器)后tx开始限制登录。发现这种情况后,我将登录协议从ipad切换到了macos,仅登录成功了一次。在我更新时就出现了-10003问题。此后我尝试清除缓存和更换协议,但所有协议都提示版本过低,猜测为tx对已登录成功过的用户的限制。

@781236208
Copy link

如果可以的话,请您告诉我们为什么您会认为可以直接在浏览器上操作,我们会在近期修改相关的文档/说明 等

原来不能么 实际上我之前一直是在浏览器上获取ticket的。。。 而且也没问题

+1,我也一直在电脑浏览器上获取ticket的。。。 而且也一直能用

@landall
Copy link

landall commented Nov 22, 2022

比较简单的方式是,先试试把bots目录下对应的数据给删除了。
我删除后直接触发了短信登录,然后就顺利上去了。

@dragon0629
Copy link

疑问,现在滑块可能出连续2次和点击滑块,TxCaptchaHelper 可以完成这个操作嘛?
我自己感觉现在碰到这种2次滑块的,TxCaptchaHelper 滑不到第二次的那个滑块。
但是浏览器可以。

@Moyulingjiu
Copy link

最近好像经常也会报告QQ版本过低,不允许登陆

@3CB3EC
Copy link

3CB3EC commented Feb 13, 2023

疑问,现在滑块可能出连续2次和点击滑块,TxCaptchaHelper 可以完成这个操作嘛? 我自己感觉现在碰到这种2次滑块的,TxCaptchaHelper 滑不到第二次的那个滑块。 但是浏览器可以。

可以,我是手机上装的滑动验证助手,出现过连续两次的,和点击文字验证等,均验证成功

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:question 标签: 需要更多信息
Projects
None yet
Development

No branches or pull requests