cssxsh / pixiv-helper

Mirai Console 插件开发计划
https://github.com/users/cssxsh/projects/4
GNU Affero General Public License v3.0
124 stars 9 forks source link

java.lang.ClassCastException: class io.ktor.client.call.TypeInfo #66

Closed LaoLittle closed 2 years ago

LaoLittle commented 2 years ago
2022-01-15 14:18:50 E/pixiv-helper: Exception in coroutine Plugin xyz.cssxsh.mirai.plugin.pixiv-helper of pixiv-helper
java.lang.ClassCastException: class io.ktor.client.call.TypeInfo cannot be cast to class io.ktor.util.reflect.TypeInfo (io.ktor.client.call.TypeInfo is in unnamed module of loader 'app'; io.ktor.util.reflect.TypeInfo is in unnamed module of loader net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoader @51d9b06c)
        at io.ktor.client.features.json.JsonSerializer$DefaultImpls.read(JsonSerializer.kt:31)
        at io.ktor.client.features.json.serializer.KotlinxSerializer.read(KotlinxSerializer.kt:20)
        at io.ktor.client.features.json.JsonFeature$Feature$install$2.invokeSuspend(JsonFeature.kt:161)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        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)

Linux无问题

cssxsh commented 2 years ago

版本信息? 插件版本 mirai版本 java版本

LaoLittle commented 2 years ago

我是直接从linux服务器上复制过来的 mirai 2.9.2 linux jdk17 windows jdk17 pixiv-helper1.7.3

cssxsh commented 2 years ago

你确定 mirai 版本是 2.9.2

LaoLittle commented 2 years ago

你确定 mirai 版本是 2.9.2

2.9.1(打错了,用的依赖都是2.9.2,习惯)

cssxsh commented 2 years ago

你有安装其他插件吗

LaoLittle commented 2 years ago

你有安装其他插件吗

漂流瓶的话ktor版本和pixiv-helper版本都是1.5.4(不过不知道1.7.3 -> 1.8.2有没有更新ktor?) 其他的貌似都是使用mirai的ktor

cssxsh commented 2 years ago

你有安装其他插件吗

漂流瓶的话ktor版本和pixiv-helper版本都是1.5.4(不过不知道1.7.3 -> 1.8.2有没有更新ktor?) 其他的貌似都是使用mirai的ktor

给我详细的列表比较好

LaoLittle commented 2 years ago

还有一些自用的 image 这三个没依赖 image 这个是https://github.com/LaoLittle/WordCloud

LaoLittle commented 2 years ago

这应该不是本插件的问题(大概