-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
于mirai载入插件报错 #32
Comments
json不支持注释( |
删完注释后报错126怎么回事 |
http://gnuwin32.sourceforge.net/packages/libiconv.htm 还有一个坑是,根据群友提供的信息,配置文件好像不会自动生成。可能需要手动复制一下配置文件到 mirai native 的配置文件目录。 https://github.com/ParaParty/JustChat_CoolQ/blob/2.0.0/com.superexercisebook.justchat/default_configuration.json |
看起来像是 mirai-native 发起的错误。只是刚好和插件的日志输出在了一起。 我大概猜测是获取群信息/群成员信息失败。 |
收到,遇到这种情况后重启mirai一般能生效 |
如题,请求您的帮助
【使用环境】
使用于Q群文件下载的 JustChat-Server-CoolQ-2.0.1-Unpack 文件夹,正确放置插件
右键mirai菜单 - 加载Dll -
【报错】
01:37:51 [INFO] [NETWORK] Send: Heartbeat.Alive
01:37:51 [INFO] [NETWORK] Recv: Heartbeat.Alive.Response
Exception in thread "MiraiNative" kotlinx.serialization.json.JsonDecodingException: Unexpected JSON token at offset 23: Expected ':'.
JSON input: {
"ret":1, // 返回码,固定为1
"apiver":9, .....
at kotlinx.serialization.json.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:26)
at kotlinx.serialization.json.internal.JsonReader.fail(JsonReader.kt:311)
at kotlinx.serialization.json.internal.StreamingJsonInput.decodeObjectIndex(StreamingJsonInput.kt:116)
at kotlinx.serialization.json.internal.StreamingJsonInput.decodeElementIndex(StreamingJsonInput.kt:88)
at org.itxtech.mirainative.plugin.PluginInfo$$serializer.deserialize(PluginInfo.kt)
at org.itxtech.mirainative.plugin.PluginInfo$$serializer.deserialize(PluginInfo.kt:30)
at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:52)
at kotlinx.serialization.json.internal.StreamingJsonInput.decodeSerializableValue(StreamingJsonInput.kt:33)
at kotlinx.serialization.DecodingKt.decode(Decoding.kt:521)
at kotlinx.serialization.json.Json.parse(Json.kt:131)
at org.itxtech.mirainative.manager.PluginManager$loadPlugin$2.invokeSuspend(PluginManager.kt:110)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
The text was updated successfully, but these errors were encountered: