Nambers / MiraiCP

c++ SDK of Mirai
https://eritque-arcus.tech/MiraiCP/
GNU Affero General Public License v3.0
177 stars 31 forks source link

[Bug]MiraiCP-loader无法登录 #160

Closed XingShuyu closed 1 year ago

XingShuyu commented 1 year ago

Code of Conduct

问题描述

使用MiraiCP-loader登录账号时遇到异常,无法登录

日志

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
正在启动
配置文件地址:C:\Users\ning1\Desktop\plugin\MiraiCP-Loader\config.json
2022.12.26 15:18:23 [INFO ] MiraiCP - ⭐MiraiCP启动中⭐
2022.12.26 15:18:23 [INFO ] MiraiCP - ⭐github存储库:https://github.com/Nambers/MiraiCP
2022.12.26 15:18:23 [INFO ] MiraiCP - ⭐MiraiCP-plugin 版本: v2.13.0-alpha-3, 构建时间: Sat Nov 19 17:14:38 UTC 2022, mirai版本: 2.13.0-RC2
2022.12.26 15:18:23 [INFO ] MiraiCP/LibLoader - ⭐libLoader 版本: v2.13.0-alpha-3
2022.12.26 15:18:23 [INFO ] MiraiCP/LibLoader - loaded plugin ./MiraiCPPlugin.dll in 8ms
2022.12.26 15:18:23 [INFO ] MiraiCP - ⭐已成功加载MiraiCP⭐
2022.12.26 15:18:23 [INFO ] MiraiCP/LibLoader - libLoader thread start
2022.12.26 15:18:23 [INFO ] plugin/Manager - 开始启动插件: xsy.Manager.522
> login 2433323144
2022.12.26 15:18:43 [INFO ] net.mamoe.mirai.utils.WindowHelperJvm - Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框. 可添加 JVM 属性 `mirai.no-desktop` 以关闭.
2022.12.26 15:18:43 [INFO ] net.mamoe.mirai.utils.WindowHelperJvm - Mirai is using desktop. Captcha will be thrown by window popup. You can add `mirai.no-desktop` to JVM properties (-Dmirai.no-desktop) to disable it.
2022.12.26 15:18:43 [INFO ] MiraiCP - 登录bot:2433323144
2022.12.26 15:18:43 [INFO ] MiraiCP - 协议:ANDROID_PHONE
2022.12.26 15:18:43 [INFO ] MiraiCP - 心跳策略:STAT_HB
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
2022.12.26 15:18:43 [INFO ] ECDHInitialPublicKeyUpdater[ Net 2433323144 ] - ECDH key is invalid, start to fetch ecdh public key from server.
2022.12.26 15:18:44 [INFO ] ECDHInitialPublicKeyUpdater[ Net 2433323144 ] - Successfully fetched ecdh public key from server.
2022.12.26 15:18:44 [WARN ] Net 2433323144 - Exception in resumeConnection.
net.mamoe.mirai.internal.network.components.LoginFailedExceptionAsNetworkException: Error(bot=Bot(2433323144), code=235, title=温馨提示, message=当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面, errorInfo=)
        at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$StateConnecting$startState$2.invokeSuspend(CommonNetworkHandler.kt:248) ~[MiraiCP-loader-2.13.0-alpha-3.jar:2.13.0-alpha-3]
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[MiraiCP-loader-2.13.0-alpha-3.jar:2.13.0-alpha-3]
        at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) ~[MiraiCP-loader-2.13.0-alpha-3.jar:2.13.0-alpha-3]
        at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) ~[MiraiCP-loader-2.13.0-alpha-3.jar:2.13.0-alpha-3]
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) ~[MiraiCP-loader-2.13.0-alpha-3.jar:2.13.0-alpha-3]
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) ~[MiraiCP-loader-2.13.0-alpha-3.jar:2.13.0-alpha-3]
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) ~[MiraiCP-loader-2.13.0-alpha-3.jar:2.13.0-alpha-3]
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) ~[MiraiCP-loader-2.13.0-alpha-3.jar:2.13.0-alpha-3]
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) ~[MiraiCP-loader-2.13.0-alpha-3.jar:2.13.0-alpha-3]
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) ~[MiraiCP-loader-2.13.0-alpha-3.jar:2.13.0-alpha-3]
Caused by: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(2433323144), code=235, title=温馨提示, message=当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面, errorInfo=)
        at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:309) ~[MiraiCP-loader-2.13.0-alpha-3.jar:2.13.0-alpha-3]
        at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt) ~[MiraiCP-loader-2.13.0-alpha-3.jar:2.13.0-alpha-3]
        ... 9 more
2022.12.26 15:18:44 [WARN ] Net 2433323144 - Network selector received exception, closing bot. (net.mamoe.mirai.internal.network.components.LoginFailedExceptionAsNetworkException: Error(bot=Bot(2433323144), code=235, title=温馨提示, message=当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面, errorInfo=))
Exception in thread "DefaultDispatcher-worker-1" net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(2433323144), code=235, title=温馨提示, message=当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面, 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)
2022.12.26 15:18:44 [INFO ] Bot 2433323144 - Bot cancelled: Bot closed
        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)
        Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [CoroutineName(Console Command), StandaloneCoroutine{Cancelling}@18389369, Dispatchers.Default]

版本

v2.13.0-alpha-3

组件

Loader(java)

编译器

Microsoft Visual C++ (MSVC)

系统

Windows

架构

x86-64/amd64