0044-00000005

问题描述

PutLiveChannel请求中Snapshot节点的Interval参数不合法。

问题原因

您发起了PutLiveChannel请求来创建一个LiveChannel,并在请求体XML中通过Snapshot节点描述高频截图操作Snapshot各项参数,但是您提供的Interval参数不符合接口要求。该参数用于表示高频截图的间隔时长,单位是秒,接口要求取值是[1, 100]范围内的整数。

问题示例

比如您发起了如下请求:

PUT /test-channel?live HTTP/1.1
Date: Wed, 24 Aug 2016 11:11:28 GMT
Content-Length: xxx
Host: test-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
<?xml version="1.0" encoding="utf-8"?>
<LiveChannelConfiguration>
    <Description />
    <Status>enabled</Status>
    <Target>
        <Type>HLS</Type>
        <FragDuration>2</FragDuration>
        <FragCount>3</FragCount>
    </Target>
    <Snapshot>
        <RoleName>role_for_snapshot</RoleName>
        <DestBucket>snapshotdest</DestBucket>
        <NotifyTopic>snapshotnotify</NotifyTopic>
        <Interval>-1</Interval>
     </Snapshot>
</LiveChannelConfiguration

上述请求中Snapshot节点的Interval子节点值为-1,不满足接口的要求,所以接口返回该错误。

解决方案

请确保请求体XMLSnapshot节点各项参数符合接口要求,比如:

PUT /test-channel?live HTTP/1.1
Date: Wed, 24 Aug 2016 11:11:28 GMT
Content-Length: xxx
Host: test-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
<?xml version="1.0" encoding="utf-8"?>
<LiveChannelConfiguration>
    <Description />
    <Status>enabled</Status>
    <Target>
        <Type>HLS</Type>
        <FragDuration>2</FragDuration>
        <FragCount>3</FragCount>
    </Target>
    <Snapshot>
        <RoleName>role_for_snapshot</RoleName>
        <DestBucket>snapshotdest</DestBucket>
        <NotifyTopic>snapshotnotify</NotifyTopic>
        <Interval>1</Interval>
     </Snapshot>
</LiveChannelConfiguration

相关文档