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

MsgPack unable to deserialize C# DateOnly object #591

Open
rbedellasmgroup opened this issue Mar 18, 2024 · 0 comments
Open

MsgPack unable to deserialize C# DateOnly object #591

rbedellasmgroup opened this issue Mar 18, 2024 · 0 comments

Comments

@rbedellasmgroup
Copy link

Describe the bug

MsgPack can serialize a C# DateOnly object, but it fails when deserializing.
The error message is: Value cannot be null. (Parameter 'calendar')

To Reproduce

  1. Create a class with a DateOnly property
  2. Set the DateOnly property, like: EffectiveFrom = new DateOnly(2001, 1, 1)
  3. Store the msgpack serialized class in Redis
  4. Read from redis and deserialize with msgpack
  5. Deserialization fails on the previous step

Expected behavior
Msgpack should deserialize C# DateOnly property correctly

Screenshots / StackTrace
Deserialization fails when class contains a DateOnly property
image

Additional context
This occurs on latest package version.
StackExchange.Redis 2.7.33
StackExchange.Redis.Extensions.MsgPack 10.2.0
image

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