Open TheArcaneBrony opened 5 hours ago
Can you please provide code to reproduce the error?
Hm, not sure how easy it would be to reproduce as my codebase requires an external account. Will try, however.
While attempting to reproduce, got this stack overflow exception while serialising this class: https://cgit.rory.gay/matrix/LibMatrix.git/tree/LibMatrix/StateEvent.cs#n158
Thank you. I copied the StateEvent class and I was able to reproduce the error.
It is getting caught up on this property because JsonObject
has a JsonNode
property and a JsonNode
has a JsonObject
property. This caused a stack overflow while enumerating properties for conversion info.
[JsonPropertyName("content")]
public JsonObject? RawContent
{
get => _rawContent;
set => _rawContent = value;
}
Fix will be up shortly.
Version 2.5.18 is up with a fix for this issue.
System.Exception: Exception has been thrown by the target of an invocation.
The object passed in this case was a plain DTO.