前不久因为登录出现code=235的情况安装了fix-protocol-version插件,前几次删除账号配置文件device.json文件运行mcl就能自动重新生成并成功登录,某次出现code=45后采用此方法无效,尝试自己更改协议无果,再次删除device.json后出现了报错。

使用./mcl -u无法解决问题

目前已经卸载了fix-protocol-version插件,其他安装插件如图
QQ图片20230421121029.png

报错:
2023-04-21 10:39:49 E/main: Failed to init MiraiConsole.
java.lang.IllegalArgumentException: Bad auto-login config value for protocol for account 2422576927
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge$doStart$11$1.invokeSuspend$configBot(MiraiConsoleImplementationBridge.kt:375)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge$doStart$11$1.access$invokeSuspend$configBot(MiraiConsoleImplementationBridge.kt)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge$doStart$11$1$bot$1.invoke(MiraiConsoleImplementationBridge.kt:400)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge$doStart$11$1$bot$1.invoke(MiraiConsoleImplementationBridge.kt:400)
at net.mamoe.mirai.console.MiraiConsole$INSTANCE.addBotImpl(MiraiConsole.kt:235)
at net.mamoe.mirai.console.MiraiConsole$INSTANCE.addBot(MiraiConsole.kt:180)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge$doStart$11$1.invokeSuspend(MiraiConsoleImplementationBridge.kt:400)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
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:357)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:496)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:177)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:176)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:54)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at org.itxtech.mcl.Utility.bootJars(Utility.java:86)
at org.itxtech.mcl.Utility.bootJars(Utility.java:76)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:98)
at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:113)
at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:123)
at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:196)
at org.itxtech.mcl.Loader.tryCatching(Loader.java:151)
at org.itxtech.mcl.Loader.start(Loader.java:196)
at org.itxtech.mcl.Loader.main(Loader.java:84)
Caused by: java.lang.IllegalArgumentException: No enum constant net.mamoe.mirai.utils.BotConfiguration.MiraiProtocol.Macos
at java.base/java.lang.Enum.valueOf(Enum.java:274)
at net.mamoe.mirai.utils.BotConfiguration$MiraiProtocol.valueOf(BotConfiguration.kt)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge$doStart$11$1.invokeSuspend$configBot(MiraiConsoleImplementationBridge.kt:373)
... 30 more