Skip to content
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

构建Video信息失败 #108

Closed
dokurorz opened this issue Jul 13, 2023 · 0 comments
Closed

构建Video信息失败 #108

dokurorz opened this issue Jul 13, 2023 · 0 comments

Comments

@dokurorz
Copy link

解析视频链接就会出现,手动试了下/bili-info bvid情况一样,但是/bili-info获取其他像直播和动态没有问题,想到可能是因为反爬,添加了cookies情况一样,视频信息模板没有改动
mirai和插件版本如下

 10:53:28 [INFO] Verifying "net.mamoe:mirai-console" v2.15.0
  10:53:29 [INFO] Verifying "net.mamoe:mirai-console-terminal"
 v2.15.0
  10:53:30 [INFO] Verifying "net.mamoe:mirai-core-all" v2.15.0
  10:53:31 [INFO] Verifying "org.itxtech:mcl-addon" v2.1.1
  10:53:31 [INFO] Verifying "net.mamoe:mirai-api-http" v2.9.1
  10:53:32 [INFO] Verifying "net.mamoe:chat-command" v0.6.0
  10:53:32 [INFO] Verifying "xyz.cssxsh.mirai:mirai-new-bing"
v0.4.3
  10:53:32 [INFO] Verifying "xyz.cssxsh.mirai:mirai-openai-plu
gin" v1.5.1
  10:53:33 [INFO] Verifying "xyz.cssxsh:bilibili-helper" v1.7.3

报错如下

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
@cssxsh cssxsh closed this as completed in 5db568f Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant