已解决 Bot cancelled: Bot closed
-
机器人登录试过用 滑动验证助手+手机QQ打开再扫码 和 MiraiAndrod登录完导出device.json覆盖 两种方法都是一样出现报错没区别。请问可以怎么解决?
完整Log放了在文档
https://shimo.im/docs/L9kBMBoLrBSxwvqK/已经有在/plugin-shared-libraries/libraries.txt 加上了
org.slf4j:slf4j-api:1.7.36
net.mamoe:mirai-slf4j-bridge:1.2.0
org.apache.logging.log4j:log4j-to-slf4j:2.18.0
还是会报错 机器人直接没启动2022-08-15 01:26:49 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-08-15 01:26:49 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-08-15 01:26:49 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-08-15 01:26:50 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-08-15 01:26:51 I/Bot.2512669590: Bot cancelled: Bot closed 2022-08-15 01:26:51 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:298) at net.mamoe.mirai.internal.utils.crypto.TEA.doOption$decrypt(TEA.kt:274) at net.mamoe.mirai.internal.utils.crypto.TEA.doOption(TEA.kt:294) at net.mamoe.mirai.internal.utils.crypto.TEA.decrypt(TEA.kt:318) at net.mamoe.mirai.internal.utils.crypto.TEA.decrypt$default(TEA.kt:317) at net.mamoe.mirai.internal.network.protocol.packet.login.wtlogin.WtLoginExt.analyzeTlv106(WtLoginExt.kt:378) at net.mamoe.mirai.internal.network.protocol.packet.login.WtLogin$Login.onLoginSuccess(WtLogin.kt:272) at net.mamoe.mirai.internal.network.protocol.packet.login.WtLogin$Login.decode(WtLogin.kt:181) at net.mamoe.mirai.internal.network.components.PacketCodecImpl.processBody(PacketCodec.kt:420) at net.mamoe.mirai.internal.network.impl.netty.NettyNetworkHandler$PacketDecodePipeline$send$1.invokeSuspend(NettyNetworkHandler.kt:189) 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.lang.Thread.run(Thread.java:748) 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:84) 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:245) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:464) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:168) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:167) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:52) [CIRCULAR REFERENCE:net.mamoe.mirai.internal.utils.crypto.DecryptionFailedException] 2022-08-15 01:26:51 I/main: mirai-console started successfully.
-
登录协议 选的是什么,最近的 安卓手表协议有问题,会无法登录
-
@cssxsh 感谢回复! 就是用了安卓手表, 现在正常运作了, 谢谢
-
-