Problem description
The bucket specified by the DestBucket parameter of the Snapshot node in the PutLiveChannel request is not in the same region as the current bucket.
Causes
You initiate a PutLiveChannel request to create a LiveChannel, but specify an invalid value for the DestBucket parameter of the Snapshot node in the XML request body. This parameter specifies the bucket that stores the snapshots. The value must be the name of a bucket that exists in the same region and under the same Alibaba Cloud account as the current bucket. However, you specify a bucket that is not in the same region as the current bucket.
Examples
For example, you initiate the following request:
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>bucket-other-region</DestBucket>
<NotifyTopic>notifyTopic</NotifyTopic>
<Interval>1</Interval>
</Snapshot>
</LiveChannelConfigurationAn error is returned because the bucket specified by the DestBucket parameter of the Snapshot node in the request is bucket-other-region, which is not in the same region as test-bucket.
Solutions
Make sure that the parameters of the Snapshot node in the XML request body are valid. Especially, make sure that the bucket specified by the DestBucket parameter is in the same region as the current bucket. The following code provides a valid sample request:
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