You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Empty XML nodes incorrectly serialized/deserialized #449
Specifically, video line items with an empty requestPlatformTargeting. Reading one of these and sending it unchanged in an updateLineItemsRequest fails with NotNullError.NULL @ targeting.requestPlatformTargeting
For background, an empty <requestPlatformTargeting/> node gets deserialized to None instead of the RequestPlatformTargeting wrapper object. The workaround coerces zeep to serialize it back as: <requestPlatformTargeting></requestPlatformTargeting>.
Activity
aebenw commentedon Aug 31, 2021
@christopherseeley Is there any update on this? I am experiencing this same issue.
My job is fetching line items and pushing them back up, this property is not changed though yet I'm getting this error.
christopherseeley commentedon Oct 12, 2021
As a workaround, you can explicitly set an xsi_type for these line items and zeep will correctly serialize it:
For background, an empty
<requestPlatformTargeting/>node gets deserialized toNoneinstead of the RequestPlatformTargeting wrapper object. The workaround coerces zeep to serialize it back as:<requestPlatformTargeting></requestPlatformTargeting>.