Hello,
I’m transferring a large amount of data to C# client app and experimenting with MsgPack format.
It seems that MsgPack format has a problem serializing QueryResponse.
Example DTO:
[Route("/products", "GET")]
public class QueryProducts: QueryDb<ProductDb>, IHasNullableId, IGet
{
public long? Id { get; set; }
}
Exception messages:
Internal Server Error
Cannot deserialize member 'Offset' of type 'System.Int32'.
Inner exception message: Cannot convert 'System.Int32' type value from type 'FixedArray'(0x96) in position 2.
Stack trace:
at MsgPack.MessagePackStreamUnpacker.ThrowTypeException(Type type, ReadValueResult header)
at MsgPack.MessagePackStreamUnpacker.ReadInt32Slow(ReadValueResult header, Byte[] buffer, Int64& offset, Int32& result)
at MsgPack.MessagePackStreamUnpacker.ReadInt32(Int32& result) at MsgPack.Serialization.UnpackHelpers.UnpackInt32Value(Unpacker unpacker, Type objectType, String memberName)