Skip to content

C# MessagePackMember Attribute Deserialize bug #30

Open
@germwire

Description

@germwire

[MessagePackMember(1, Name = "fees", NilImplication = NilImplication.MemberDefault)]
public decimal Fees { get; set; }

ERROR:

{"The unpacked value is not expected type. Do not convert System.Byte (binary:0x0) MessagePackObject to MsgPack.MessagePackString."}
The unpacked value is not expected type. Do not convert System.Byte (binary:0x0) MessagePackObject to MsgPack.MessagePackString.
at MsgPack.Serialization.DefaultSerializers.System_DecimalMessagePackSerializer.UnpackFromCore(Unpacker unpacker)
at MsgPack.Serialization.MessagePackSerializer1.UnpackFrom(Unpacker unpacker) at MsgPack.Serialization.UnpackHelpers.UnpackComplexObject[T](Unpacker unpacker, MessagePackSerializer1 serializer, Int32 unpacked)
at MsgPack.Serialization.UnpackHelpers.UnpackValueTypeValueCoreTContext,TValue
at MsgPack.Serialization.UnpackHelpers.UnpackValueTypeValueTContext,TValue
at MsgPack.Serialization.EmittingSerializers.Generated.####_Models_OrderSerializer1.UnpackValueOfprocessingFee(Unpacker , Order , Int32 , Int32 )
at MsgPack.Serialization.UnpackHelpers.UnpackFromMapCoreTContext,TResult
at MsgPack.Serialization.UnpackHelpers.UnpackFromMapTContext,TResult
at MsgPack.Serialization.UnpackHelpers.UnpackFromMapTContext,TResult
at MsgPack.Serialization.EmittingSerializers.Generated.####_Models_OrderSerializer1.UnpackFromCore(Unpacker )
at MsgPack.Serialization.MessagePackSerializer`1.UnpackFrom(Unpacker unpacker)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions