2023-07-12 20:55:24 V/Bot.****: [can can need(****)] Dokuro(****) -> https://www.bilibili.com/video/BV1Zj411m7y8/
2023-07-12 20:55:24 I/bilibili-helper: Member Dokuro(****.****) 匹配Video(BV1Zj411m7y8)
2023-07-12 20:55:24 W/bilibili-helper: 构建Video(BV1Zj411m7y8)信息失败
kotlinx.serialization.json.internal.JsonDecodingException: Expected class kotlinx.serialization.json.JsonObject as the serialized body of xyz.cssxsh.bilibili.data.VideoSubtitle, but had class kotlinx.serialization.json.JsonNull
at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24)
at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.beginStructure(TreeJsonDecoder.kt:359)
at kotlinx.serialization.json.internal.JsonTreeDecoder.beginStructure(TreeJsonDecoder.kt:259)
at bilibili-helper-1.7.3.mirai2.jar//xyz.cssxsh.bilibili.data.VideoSubtitle$$serializer.deserialize(Video.kt:133)
at bilibili-helper-1.7.3.mirai2.jar//xyz.cssxsh.bilibili.data.VideoSubtitle$$serializer.deserialize(Video.kt:133)
at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:61)
at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:52)
at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableValue(Tagged.kt:207)
at kotlinx.serialization.internal.TaggedDecoder$decodeSerializableElement$1.invoke(Tagged.kt:280)
at kotlinx.serialization.internal.TaggedDecoder.tagBlock(Tagged.kt:297)
at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableElement(Tagged.kt:280)
at bilibili-helper-1.7.3.mirai2.jar//xyz.cssxsh.bilibili.data.BiliVideoInfo$$serializer.deserialize(Video.kt:30)
at bilibili-helper-1.7.3.mirai2.jar//xyz.cssxsh.bilibili.data.BiliVideoInfo$$serializer.deserialize(Video.kt:30)
at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:61)
at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:52)
at kotlinx.serialization.json.internal.TreeJsonDecoderKt.readJson(TreeJsonDecoder.kt:25)
at kotlinx.serialization.json.Json.decodeFromJsonElement(Json.kt:117)
at bilibili-helper-1.7.3.mirai2.jar//xyz.cssxsh.bilibili.api.VideoKt$getVideoInfo$$inlined$json$2$1.invokeSuspend(Api.kt:139)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at bilibili-helper-1.7.3.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
2023-07-12 20:55:25 V/Bot.****: Group(****) <- Expected class kotlinx.serialization.json.JsonObject as the serialized body of xyz.cssxsh.bilibili.data.VideoSubtitle, but had class kotlinx.serialization.json.JsonNull
解析视频链接就会出现,手动试了下/bili-info bvid情况一样,但是/bili-info获取其他像直播和动态没有问题,想到可能是因为反爬,添加了cookies情况一样,视频信息模板没有改动 mirai和插件版本如下
报错如下