cssxsh / bilibili-helper

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

可能是b站改了api,前天开始b站视频信息获取一直都是失败 #109

Closed fufuzhou closed 1 year ago

fufuzhou commented 1 year ago

mirai版本2.14 插件版本1.7.3 已经用/bili-login登陆过 以下是log:

2023-07-13 15:52:45 I/bilibili-helper: Friend () 匹配Video(BV1tF4119754) 2023-07-13 15:52:45 V/Bot.198376313: () -> https://www.bilibili.com/video/BV1tF4119754 2023-07-13 15:52:45 W/bilibili-helper: 构建Video(BV1tF4119754)信息失败 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:347) at kotlinx.serialization.json.internal.JsonTreeDecoder.beginStructure(TreeJsonDecoder.kt:249) 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:59) at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:51) at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableValue(Tagged.kt:206) at kotlinx.serialization.internal.TaggedDecoder$decodeSerializableElement$1.invoke(Tagged.kt:279) at kotlinx.serialization.internal.TaggedDecoder.tagBlock(Tagged.kt:296) at kotlinx.serialization.internal.TaggedDecoder.decodeSerializableElement(Tagged.kt:279) 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:59) at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:51) at kotlinx.serialization.json.internal.TreeJsonDecoderKt.readJson(TreeJsonDecoder.kt:24) at kotlinx.serialization.json.Json.decodeFromJsonElement(Json.kt:119) 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-13 15:52:46 V/Bot.198376313: Friend() <- Expected class kotlinx.serialization.json.JsonObject as the serialized body of xyz.cssxsh.bilibili.data.VideoSubtitle, but had class kotlinx.serialization.json.JsonNull

fufuzhou commented 1 year ago

哦已经有人报过了