Closed Almis90 closed 2 years ago
@Almis90 Thanks for your interest in this project.
I'm very sorry for taking so long to reply to you.
For disk provider, we use MessagePack to serializer/deserializer the data, SerializerName is useless here.
It seems that the response can not be serialized. Could you show more information for this response?
@Almis90 Thanks for your interest in this project.
I'm very sorry for taking so long to reply to you.
For disk provider, we use MessagePack to serializer/deserializer the data, SerializerName is useless here.
It seems that the response can not be serialized. Could you show more information for this response?
No problem at all, at the end I switched to LiteDB thinking it would solve my issue but it didn't. The problem was that I was trying to serialize a class from a library, for some reason it was not serializing two properties (but at least it was not throwing exception), so I mapped it to my own class and it worked.
Description
I'm getting the exception "MessagePack.MessagePackSerializationException" when I call "TrySetAsync" with Disk provider even though I chose to use JSON serializer. When I use InMemory then it doesn't throw any exceptions.
Steps to Reproduce
Related code
This my DI
this is how I call provider.TrySetAsync
Expected behavior: [What you expected to happen] I expected it to save successfully or at least give me another error that is not related to MessagePack because I'm not using it.
Actual behavior: [What actually happened] I getting an exception that MessagePack serializer failed
Specifications