Open lesscodetxm opened 5 years ago
@lesscodetxm this is a standard issue with exception serialization due to how Exception
itself stores its state - we're working on some ideas around a generalized solution for Akka.Remote here: https://github.com/akkadotnet/akka.net/issues/3903 - what we do for remoting might also work for persistence, but we'll see.
In the short run, might be better to copy an Exception into a more serialization-friendly object containing the stack trace et al
I've been doing most of my actor testing using EventStore, but on one test server we have to use SqlServer for event persistence. On events that contain exceptions we get:
With EventStore we've configured an adapter that can properly deserialize derived types (by configuring the Json serializer to write the type information). I assume we need to do something similar for Sql Server but I'm unsure how to configure it.
Any tips? Or is this actually a bug?