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

kotlinx.serialization.MissingFieldException: Fields [user_id, channel_id] are required for type with serial name 'love.forte.simbot.kook.event.system.user.UserExitedChannelEventBodyImpl', but they were missing #69

Open
ForteScarlet opened this issue Nov 6, 2022 · 0 comments
Labels
bug? 疑似为bug或存在普遍问题

Comments

@ForteScarlet
Copy link
Member

Event pre precess failure.
kotlinx.serialization.MissingFieldException: Fields [user_id, channel_id] are required for type with serial name 'love.forte.simbot.kook.event.system.user.UserExitedChannelEventBodyImpl', but they were missing
        at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20)
        at love.forte.simbot.kook.event.system.user.UserExitedChannelEventBodyImpl.<init>(UserExitedChannelEvent.kt:56)
        at love.forte.simbot.kook.event.system.user.UserExitedChannelEventBodyImpl$$serializer.deserialize(UserExitedChannelEvent.kt:56)
        at love.forte.simbot.kook.event.system.user.UserExitedChannelEventBodyImpl$$serializer.deserialize(UserExitedChannelEvent.kt:56)
        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: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 love.forte.simbot.kook.event.system.SimpleSystemEventExtra$$serializer.deserialize(SystemEvent.kt:79)
        at love.forte.simbot.kook.event.system.SimpleSystemEventExtra$$serializer.deserialize(SystemEvent.kt:79)
        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: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 love.forte.simbot.kook.event.system.SystemEventImpl$$serializer.deserialize(SystemEvent.kt:83)
        at love.forte.simbot.kook.event.system.SystemEventImpl$$serializer.deserialize(SystemEvent.kt:83)
        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 love.forte.simbot.kook.event.SysEventParser.deserialize(EventSignals.kt:96)
        at love.forte.simbot.kook.event.SysEventParser.deserialize(EventSignals.kt:83)
        at love.forte.simbot.kook.internal.KookBotImpl$eventProcessJob$launchJob$1$lazy$1.invoke(KookBotImpl.kt:741)
        at love.forte.simbot.kook.internal.KookBotImpl$eventProcessJob$launchJob$1$lazy$1.invoke(KookBotImpl.kt:740)
        at kotlin.SafePublicationLazyImpl.getValue(LazyJVM.kt:107)
        at love.forte.simbot.kook.internal.KookBotImpl$eventProcessJob$launchJob$1$lazyDecoded$1.get(KookBotImpl.kt:744)
        at kotlin.jvm.internal.PropertyReference0.invoke(PropertyReference0.java:35)
        at love.forte.simbot.component.kook.internal.KookComponentBotImpl$1.invokeSuspend(KookComponentBotImpl.kt:114)
        at love.forte.simbot.component.kook.internal.KookComponentBotImpl$1.invoke(KookComponentBotImpl.kt)
        at love.forte.simbot.component.kook.internal.KookComponentBotImpl$1.invoke(KookComponentBotImpl.kt)
        at love.forte.simbot.kook.internal.KookBotImpl$eventProcessJob$launchJob$1.invokeSuspend(KookBotImpl.kt:749)
        at love.forte.simbot.kook.internal.KookBotImpl$eventProcessJob$launchJob$1.invoke(KookBotImpl.kt)
        at love.forte.simbot.kook.internal.KookBotImpl$eventProcessJob$launchJob$1.invoke(KookBotImpl.kt)
        at kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2.emit(Emitters.kt:223)
        at kotlinx.coroutines.flow.FlowKt__ChannelsKt.emitAllImpl$FlowKt__ChannelsKt(Channels.kt:62)
        at kotlinx.coroutines.flow.FlowKt__ChannelsKt.access$emitAllImpl$FlowKt__ChannelsKt(Channels.kt:1)
        at kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1.invokeSuspend(Channels.kt)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
        at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
        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)

但是这两个属性文档里都有,待确认原因

@ForteScarlet ForteScarlet added the bug? 疑似为bug或存在普遍问题 label Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? 疑似为bug或存在普遍问题
Projects
None yet
Development

No branches or pull requests

1 participant