Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

点歌点不了 #195

Closed
1 task done
ghost opened this issue Jun 12, 2023 · 1 comment
Closed
1 task done

点歌点不了 #195

ghost opened this issue Jun 12, 2023 · 1 comment
Labels
p: high 优先级:高 s: done 已在下个版本修复或实现 t: bug 类型:bug

Comments

@ghost
Copy link

ghost commented Jun 12, 2023

Code of Conduct

  • I conform

问题描述

网易云音乐无法分享
Mirai2.15.0-M2

日志

2023-06-12 14:32:27 E/MiraiCP: Polymorphic serializer was not found for class di
scriminator 'miraicode'
JSON input: .....ng/media/outer/url?id=422132965.mp3,分享]","type":"miraicode"}
2023-06-12 14:32:27 E/MiraiCP: {"data":"{\"contact\":{\"botId\":1813830632,\"gro
upId\":714581529,\"id\":714581529,\"type\":2},\"message\":\"[{\\\"content\\\":\\
\"[mirai:musicshare:NeteaseCloudMusic,尋問 ~ モデラート2016,岩垂徳行,https://mus
ic.163.com/song?id=422132965,https://p2.music.126.net/2PyLrp2XReetnEuB4qH66w==/1
09951164883655910.jpg,http://music.163.com/song/media/outer/url?id=422132965.mp3
,分享]\\\",\\\"type\\\":\\\"miraicode\\\"}]\"}","type":1}
2023-06-12 14:32:27 W/stderr: kotlinx.serialization.json.internal.JsonDecodingEx
ception: Polymorphic serializer was not found for class discriminator 'miraicode
'
2023-06-12 14:32:27 W/stderr: JSON input: .....ng/media/outer/url?id=422132965.m
p3,分享]","type":"miraicode"}
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.json.internal.JsonExcep
tionsKt.JsonDecodingException(JsonExceptions.kt:24)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.json.internal.JsonExcep
tionsKt.JsonDecodingException(JsonExceptions.kt:32)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.json.internal.Polymorph
icKt.throwSerializerNotFound(Polymorphic.kt:79)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.json.internal.Polymorph
icKt.decodeSerializableValuePolymorphic(Polymorphic.kt:68)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.json.internal.Streaming
JsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:81)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.encoding.AbstractDecode
r.decodeSerializableValue(AbstractDecoder.kt:43)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.encoding.AbstractDecode
r.decodeSerializableElement(AbstractDecoder.kt:70)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.json.internal.Streaming
JsonDecoder.decodeSerializableElement(StreamingJsonDecoder.kt:162)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.encoding.CompositeDecod
er$DefaultImpls.decodeSerializableElement$default(Decoding.kt:533)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.internal.CollectionLike
Serializer.readElement(CollectionSerializers.kt:80)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.internal.AbstractCollec
tionSerializer.readElement$default(CollectionSerializers.kt:51)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.internal.AbstractCollec
tionSerializer.merge(CollectionSerializers.kt:36)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.internal.AbstractCollec
tionSerializer.deserialize(CollectionSerializers.kt:43)
2023-06-12 14:32:27 W/stderr:   at net.mamoe.mirai.message.data.MessageChain$Ser
ializer.deserialize(MessageChain.kt:276)
2023-06-12 14:32:27 W/stderr:   at net.mamoe.mirai.message.data.MessageChain$Ser
ializer.deserialize(MessageChain.kt:272)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.json.internal.Streaming
JsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:70)
2023-06-12 14:32:27 W/stderr:   at kotlinx.serialization.json.Json.decodeFromStr
ing(Json.kt:97)
2023-06-12 14:32:27 W/stderr:   at net.mamoe.mirai.message.data.MessageChain$Com
panion.deserializeFromJsonString(MessageChain.kt:298)
2023-06-12 14:32:27 W/stderr:   at net.mamoe.mirai.message.data.MessageChain$Com
panion.deserializeFromJsonString$default(MessageChain.kt:294)
2023-06-12 14:32:27 W/stderr:   at MiraiCP-plugin-2.15.0-RC2.mirai2.jar//tech.er
itquearcus.miraicp.shared.PublicShared.sendMsg(PublicShared.kt:195)
2023-06-12 14:32:27 W/stderr:   at MiraiCP-plugin-2.15.0-RC2.mirai2.jar//tech.er
itquearcus.miraicp.shared.Packets$Incoming$operations$2.invoke(Packet.kt:367)
2023-06-12 14:32:27 W/stderr:   at MiraiCP-plugin-2.15.0-RC2.mirai2.jar//tech.er
itquearcus.miraicp.shared.Packets$Incoming$operations$2.invoke(Packet.kt:367)
2023-06-12 14:32:27 W/stderr:   at MiraiCP-plugin-2.15.0-RC2.mirai2.jar//tech.er
itquearcus.miraicp.shared.CPPLib$operation$1.invokeSuspend(CPPLib.kt:62)
2023-06-12 14:32:27 W/stderr:   at kotlin.coroutines.jvm.internal.BaseContinuati
onImpl.resumeWith(ContinuationImpl.kt:33)
2023-06-12 14:32:27 W/stderr:   at kotlinx.coroutines.DispatchedTask.run(Dispatc
hedTask.kt:106)
2023-06-12 14:32:27 W/stderr:   at kotlinx.coroutines.EventLoopImplBase.processN
extEvent(EventLoop.common.kt:284)
2023-06-12 14:32:27 W/stderr:   at kotlinx.coroutines.BlockingCoroutine.joinBloc
king(Builders.kt:85)
2023-06-12 14:32:27 W/stderr:   at kotlinx.coroutines.BuildersKt__BuildersKt.run
Blocking(Builders.kt:59)
2023-06-12 14:32:27 W/stderr:   at kotlinx.coroutines.BuildersKt.runBlocking(Unk
nown Source)
2023-06-12 14:32:27 W/stderr:   at kotlinx.coroutines.BuildersKt__BuildersKt.run
Blocking$default(Builders.kt:38)
2023-06-12 14:32:27 W/stderr:   at kotlinx.coroutines.BuildersKt.runBlocking$def
ault(Unknown Source)
2023-06-12 14:32:27 W/stderr:   at MiraiCP-plugin-2.15.0-RC2.mirai2.jar//tech.er
itquearcus.miraicp.shared.CPPLib.operation(CPPLib.kt:59)
2023-06-12 14:32:27 W/stderr:   at MiraiCP-plugin-2.15.0-RC2.mirai2.jar//tech.er
itquearcus.miraicp.shared.CPPLibMultiplatform.KOperation(CPPLibMultiplatform.kt:
45)
2023-06-12 14:32:27 E/plugin/MiraiCP: MiraiCP内部无法预料的错误:reach a error ar
ea, Contact::sendMsgImpl
2023-06-12 14:32:27 E/plugin/MiraiCP: 文件名:MiraiCP\sdk\MiraiCP\MiraiCP.cpp
行号:2963

版本

2.15.0-RC2

组件

Plugin(SDK)

编译器

Microsoft Visual C++ (MSVC)

系统

Windows

架构

x86-64/amd64

@ghost
Copy link
Author

ghost commented Jun 12, 2023

1

@Antares0982 Antares0982 added t: bug 类型:bug p: high 优先级:高 labels Jun 15, 2023
Nambers added a commit that referenced this issue Jun 20, 2023
add Json serialization impl of MusicShare and add mock test.

Closes #195
@Nambers Nambers added the s: done 已在下个版本修复或实现 label Jun 20, 2023
@ghost ghost closed this as completed Jun 21, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p: high 优先级:高 s: done 已在下个版本修复或实现 t: bug 类型:bug
Projects
None yet
Development

No branches or pull requests

2 participants