我的Springboot项目安装了simbot-core-starter以及mirai-component为什么已启动程序就报错:Null #194
-
涉及的编程语言Java 涉及的组件库QQ机器人 疑问描述Gradle 配置 group = "me.coderfrish" java { configurations { repositories { dependencies {
} kotlin { tasks.withType { 报错消息 . ____ _ __ _ _ :: Spring Boot :: (v3.3.2) 2024-08-13T01:09:18.214+08:00 INFO 16908 --- [api] [ restartedMain] me.coderfrish.api.ApiApplicationKt : Starting ApiApplicationKt using Java 21.0.4 with PID 16908 (D:\WhiteBot\api\build\classes\kotlin\main started by 15738 in D:\WhiteBot) kotlinx.serialization.json.internal.JsonDecodingException: Expected class kotlinx.serialization.json.JsonArray as the serialized body of kotlin.ByteArray, but had class kotlinx.serialization.json.JsonLiteral 2024-08-13T01:09:21.998+08:00 INFO 16908 --- [api] [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat] Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simbotApplicationAfterApplication' defined in love.forte.simboot.spring.autoconfigure.SimbotSpringBootApplicationConfiguration: Failed to instantiate [love.forte.simboot.spring.autoconfigure.AutoConfigureMarker$AfterApplicationPostProcessor]: Factory method 'simbotApplicationAfterApplication' threw exception with message: Bot login failed. cause: null 进程已结束,退出代码为 0 ` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
mirai已经停止更新,而且有大概率会因为风控等原因无法登录,目前可能也就使用手表协议才有概率可以成功登录。 simbot4.0之后也不再继续维护mirai组件了,你可以考虑升级到simbot4.0,并换为使用 |
Beta Was this translation helpful? Give feedback.
mirai已经停止更新,而且有大概率会因为风控等原因无法登录,目前可能也就使用手表协议才有概率可以成功登录。
simbot4.0之后也不再继续维护mirai组件了,你可以考虑升级到simbot4.0,并换为使用
OneBot组件 (实现OneBot11客户端协议的组件,需要自行部署一个OneBot服务端)
或
QQ机器人组件 (实现官方的QQ机器人API,限制较多,审核周期较长且比较严格)