I'm using Refit to consume an XML ReST Web Api. There is some issue with XML deserialization into POCOs (which are annotated with attributes from System.Xml.Serialization
) since I get a NullReferenceException
in Refit.RequestBuilderImplementation.DeserializeContentAsync
.
However, I a no further information on how to debug the issue, since the exception message tells me nothing on what attribute or object in the response is not adapted to my POCOs.
The XMl is :
<?xml version="1.0" encoding="utf-16"?>
<MediaContainer friendlyName="myPlex" identifier="com.plexapp.plugins.myplex" machineIdentifier="c62be90a37d43ecd9596be8abd98a2e485979e31" size="2">
<Server accessToken="plexauthtoken" name="VOSTOK" address="ip address" port="1" version="1.23.0.4497-a1b1f3c10" scheme="http" host="ip address" localAddresses="ipaddress1,ipaddress2" machineIdentifier="machineid" createdAt="1590584258" updatedAt="1621708154" owned="1" synced="0" />
</MediaContainer>