These are chat archives for akkadotnet/akka.net

12th
Jan 2019
Bartosz Sypytkowski
@Horusiath
Jan 12 14:18
@eaba it looks like, you're trying to use some object that JSON.NET is not able to serialize - my guess would be that you're trying to use Akka.Cluster.Sharding (which has warning to not use json.net as a default ;) )
you can try to change it to something else, like Hyperion, or to use akka.cluster.sharding in ddata mode
Ebere Abanonu
@eaba
Jan 12 16:07
@Horusiath am not using akka.cluster.sharding no akka.cluster atm... @ismaelhamed suggestion:
serialization-settings.json {
                        preserve-object-references = false
                        encode-type-names = false
                    }
Is taking me further......what do you say about it?
Arjen Smits
@Danthar
Jan 12 16:13
Im sure it helps. But like @Horusiath is saying. If your using Cluster Sharding. Using json.net is highly discouraged
When using cluster sharding. or actually, any akka modules with persistence. You will want to have explicit control over your message schema's
considering that akka.persistence is using event-sourcing
Ebere Abanonu
@eaba
Jan 12 16:16
When using cluster sharding. or actually, any akka modules with persistence. You will want to have explicit control over your message schema's
Am not using cluster sharding
Arjen Smits
@Danthar
Jan 12 16:16
ok
Ebere Abanonu
@eaba
Jan 12 16:16
So am left with persistence
does preserve-object-references = false
solve my problem
should i be worried about something going that way?
Arjen Smits
@Danthar
Jan 12 16:18
perhaps. i dont know what your message schema looks like. But you can test that pretty quickly yourself
going what way ?
Ebere Abanonu
@eaba
Jan 12 16:18
preserve-object-references = false way
Tested and working
Arjen Smits
@Danthar
Jan 12 16:19
ah. Im not aware of any long term issues with disabling object-references
Ebere Abanonu
@eaba
Jan 12 16:19
My message is just an Immutable Dictionary wrapped in a custom class
Ok
Arjen Smits
@Danthar
Jan 12 16:20
ah. yeah json.net can have issues with that
immutable collection types and json.net have a history of bugs
Ebere Abanonu
@eaba
Jan 12 16:21
Ok I will note that
Arjen Smits
@Danthar
Jan 12 16:21
so be sure to test all your message types if you continue to use immutable collection types with json.net
Ebere Abanonu
@eaba
Jan 12 16:22
Ok...
Thanks @Danthar
QwerSense
@QwerSense
Jan 12 17:12
Hey, is there a websocket chat example with akka.net and dotnet core?