如题,之前搭建了dice bot并且成功拉进群跑了一次。但在搁置了两个月现在重新打开mirai的时候登录不上。原本一直出现qq版本过低的问题,看了论坛里的提问后按升级——改协议——加生成设备信息插件的步骤之后成功解决了。但这个时候,报错的问题变成了当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。
我想问问这个是真的是我网络问题,还是说也像“qq版本过低”一样是个托词需要另找办法解决?谢谢!
完整log如下
Mirai Dice 启动脚本
初始化
检测Java
Java: .\jre\bin\java
检测Git
Git: .\git\cmd\git
12:18:26 [INFO] Mirai Console Loader version 1.0.3-6e34f43
12:18:26 [INFO] https://github.com/iTXTech/mirai-console-loader
12:18:26 [INFO] This program is licensed under GNU AGPL v3
12:18:26 [DEBUG] Loading script: boot.js
12:18:26 [DEBUG] Loading script: config.js
12:18:26 [DEBUG] Loading script: repo.js
12:18:26 [DEBUG] Loading script: updater.js
12:18:27 [INFO] Verifying "net.mamoe:mirai-console" version 2.11.0-M1
12:18:27 [INFO] Verifying "net.mamoe:mirai-console-terminal" version 2.11.0-M1
12:18:28 [INFO] Verifying "net.mamoe:mirai-core-all" version 2.10.1
12:18:28 [INFO] Verifying "xyz.cssxsh.mirai:mirai-device-generator" version 1.0.1
2022-11-24 12:18:30 I/main: Starting mirai-console...
2022-11-24 12:18:31 I/main: Backend: version 2.11.0-M1, built on 2022-03-08 20:34:54.
2022-11-24 12:18:31 I/main: Frontend Terminal: version 2.11.0-M1, provided by Mamoe Technologies
2022-11-24 12:18:31 I/main: Welcome to visit https://mirai.mamoe.net/
2022-11-24 12:18:31 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2022-11-24 12:18:31 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation
2022-11-24 12:18:31 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2022-11-24 12:18:31 I/plugin: Successfully loaded plugin mirai-device-generator v1.0.1
2022-11-24 12:18:31 I/net.mamoe.mirai-login-solver-selenium: Loading mirai-login-solver-selenium v1.0-dev-12
2022-11-24 12:18:31 I/WindowHelperJvm: Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框. 可添加 JVM 属性
mirai.no-desktop以关闭.
2022-11-24 12:18:31 I/WindowHelperJvm: Mirai is using desktop. Captcha will be thrown by window popup. You can add
mirai.no-desktopto JVM properties (-Dmirai.no-desktop) to disable it.
2022-11-24 12:18:31 I/stdout: Line: ProgId REG_SZ ChromeHTML, b64:ICAgIFByb2dJZCAgICBSRUdfU1ogICAgQ2hyb21lSFRNTA==
2022-11-24 12:18:31 I/stdout: List: [, ProgId, REG_SZ, ChromeHTML]
2022-11-24 12:18:31 I/stdout: Line: name REG_SZ Google Chrome, b64:ICAgIG5hbWUgICAgUkVHX1NaICAgIEdvb2dsZSBDaHJvbWU=
2022-11-24 12:18:31 I/stdout: List: [, name, REG_SZ, Google Chrome]
2022-11-24 12:18:31 I/stdout: Line: pv REG_SZ 107.0.5304.107, b64:ICAgIHB2ICAgIFJFR19TWiAgICAxMDcuMC41MzA0LjEwNw==
2022-11-24 12:18:31 I/stdout: List: [, pv, REG_SZ, 107.0.5304.107]
2022-11-24 12:18:31 I/stdout: [2022-11-24 12:18:31 MxLib Selenium - Chrome] Running on 中国-大陆
2022-11-24 12:18:31 I/stdout: [2022-11-24 12:18:31 MxLib Selenium - Chrome] Using taoboo mirror default
2022-11-24 12:18:31 I/stdout: [2022-11-24 12:18:31 MxLib Selenium - Chrome] MxLib will download chrome driver from http://npm.taobao.org/mirrors/chromedriver/
2022-11-24 12:18:31 I/stdout: [2022-11-24 12:18:31 MxLib Selenium - Chrome] Change it with
-Dmxlib.selenium.chrome.mirror=…..vm option
2022-11-24 12:18:31 I/stdout: [2022-11-24 12:18:31 MxLib Selenium - Chrome] Or disable it with
-Dmxlib.selenium.chrome.no-mirror2022-11-24 12:18:31 I/plugin: Successfully loaded plugin net.mamoe.mirai-login-solver-selenium v1.0-dev-12
2022-11-24 12:18:31 I/MiraiNative: 当前系统: Windows 10
2022-11-24 12:18:31 I/MiraiNative: 当前架构: x86
2022-11-24 12:18:31 I/plugin: Successfully loaded plugin MiraiNative v2.0.5-cp
2022-11-24 12:18:31 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop
2022-11-24 12:18:32 I/MiraiNative: 正在加载 Mirai Native Bridge D:\miraiDice\data\org.itxtech.mirainative\CQP.dll
2022-11-24 12:18:32 I/MiraiNative: 插件 Dice.Driver.CQ.dll 已被加载,返回值为 0 。
2022-11-24 12:18:32 I/main: 3 plugin(s) enabled.
2022-11-24 12:18:32 I/main: Auto-login 2715319778
2022-11-24 12:18:32 W/stderr: ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
2022-11-24 12:18:33 W/stderr: [LoginSolverSelenium] Captcha URL: https://ssl.captcha.qq.com/template/wireless_mqq_captcha.html?style=simple&aid=16&uin=2715319778&sid=3199371619210293403&cap_cd=HSrYuyLYmrMCi6OSdxedYC8q3aGgveJ1P5NXgXUdckMfrxKqlYuiCA**&clientype=1&apptype=2
2022-11-24 12:18:34 W/stderr: Starting ChromeDriver 107.0.5304.62 (1eec40d3a5764881c92085aaee66d25075c159aa-refs/branch-heads/5304@{#942}) on port 19153
2022-11-24 12:18:34 W/stderr: Only local connections are allowed.
2022-11-24 12:18:34 W/stderr: Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
2022-11-24 12:18:34 W/stderr: ChromeDriver was started successfully.
2022-11-24 12:18:35 W/stderr: 11�� 24, 2022 12:18:35 ���� org.openqa.selenium.remote.ProtocolHandshake createSession
2022-11-24 12:18:35 W/stderr: ��Ϣ: Detected dialect: W3C
2022-11-24 12:18:35 W/stderr:
2022-11-24 12:18:35 W/stderr: 11�� 24, 2022 12:18:35 ���� org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
2022-11-24 12:18:35 W/stderr: ����: Unable to find an exact match for CDP version 107, so returning the closest version found: a no-op implementation
2022-11-24 12:18:35 W/stderr:
2022-11-24 12:18:35 W/stderr: 11�� 24, 2022 12:18:35 ���� org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
2022-11-24 12:18:35 W/stderr: ��Ϣ: Unable to find CDP implementation matching 107.
2022-11-24 12:18:35 W/stderr:
2022-11-24 12:18:35 W/stderr: 11�� 24, 2022 12:18:35 ���� org.openqa.selenium.chromium.ChromiumDriver lambda$new$0
2022-11-24 12:18:35 W/stderr: ����: Unable to find version of CDP to use for . You may need to include a dependency on a specific version of the CDP using something similar to
org.seleniumhq.selenium:selenium-devtools-v86:4.0.0-alpha-7where the version ("v86") matches the version of the chromium-based browser you're using and the version number of the artifact is the same as Selenium's.
2022-11-24 12:18:35 W/stderr:
2022-11-24 12:18:44 W/stderr:
2022-11-24 12:18:45 W/stderr:
2022-11-24 12:18:45 I/Bot.2715319778: Bot cancelled: Bot closed
2022-11-24 12:18:45 E/main: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(2715319778), code=237, title= 安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=)
net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(2715319778), code=237, title=安全提醒, message=当前网络不 稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=)
at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:265)
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:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Suppressed: java.util.concurrent.CancellationException: Bot closed
at kotlinx.coroutines.ExceptionsKt.CancellationException(Exceptions.kt:22)
at net.mamoe.mirai.internal.AbstractBot.close(AbstractBot.kt:112)
at net.mamoe.mirai.internal.QQAndroidBot.close(QQAndroidBot.kt:80)
at net.mamoe.mirai.internal.AbstractBot.login(AbstractBot.kt:136)
at net.mamoe.mirai.internal.AbstractBot$login$1.invokeSuspend(AbstractBot.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:279)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:234)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:444)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:159)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:158)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:84)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1692)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107)
at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43)
at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:155)
at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdapter.java:105)
at org.mozilla.javascript.Context.call(Context.java:554)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:522)
at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:105)
at org.mozilla.javascript.jdk18.VMBridge_jdk18$1.invoke(VMBridge_jdk18.java:126)
at com.sun.proxy.$Proxy4.run(Unknown Source)
at org.itxtech.mcl.script.ScriptManager.phaseBoot(ScriptManager.java:101)
at org.itxtech.mcl.Loader.start(Loader.java:128)
at org.itxtech.mcl.Loader.main(Loader.java:53)
Caused by: [CIRCULAR REFERENCE: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(2715319778), code=237, title=安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=)]