Description
The KalturaLiveStatsListResponse class schema is incorrectly defined in the API schema, causing generated client libraries to fail parsing live report responses.
Cause
In the API schema used to generate client libraries, KalturaLiveStatsListResponse defines the objects property as a single KalturaLiveStats object instead of an array:
<class name="KalturaLiveStatsListResponse" base="KalturaListResponse" description="">
<property name="objects" type="KalturaLiveStats" readOnly="0" insertOnly="0" writeOnly="0" multiLingual="0" description=""/>
</class>
The actual response from the API returns an array of KalturaLiveStats:
<objects>
<item>
<objectType>KalturaEntryLiveStats</objectType>
<audience>4816</audience>
<dvrAudience>1383</dvrAudience>
<avgBitrate>2128.1895122421</avgBitrate>
<!-- ... more properties ... -->
</item>
</objects>
Steps to reproduce
- Call
liveReports.getReport() with any valid filter
- In the response
objects all properties should be NULL
- Compare raw XML response. Data is present but cannot be parsed
Description
The
KalturaLiveStatsListResponseclass schema is incorrectly defined in the API schema, causing generated client libraries to fail parsing live report responses.Cause
In the API schema used to generate client libraries,
KalturaLiveStatsListResponsedefines theobjectsproperty as a singleKalturaLiveStatsobject instead of an array:The actual response from the API returns an array of KalturaLiveStats:
Steps to reproduce
liveReports.getReport()with any valid filterobjectsall properties should be NULL