The following XML is being POSTed for repositioning a video in a playlist:
<entry>
<batch:operation type="update"/>
<id>tag:youtube.com,2008:playlist:<Playlist ID>:<Media ID></id>
<link rel='edit' type='application/atom+xml' href='https://gdata.youtube.com/feeds/api/playlists/<Playlist ID>/<Media ID>?v=2.1'/>
<yt:position>4</yt:position>
</entry>
The returned batch status code and reason is: 500 - Internal Error. The video is actually repositioned even though there was an internal server error. Since the batch yt:position tag will not be in the returned XML when there is an internal server error, it is not possible to verify the position change using only the returned XML for the update operation.
The '500 - Internal Error' status is being returned consistently - regardless of the time of day or time period between batch operations.
I am currently requesting a Batch Query for every Batch [ Position ] Update in order to verify the video was repositioned but, I would like to know why the '500 - Internal Error' status is being returned and if it is simply the result of pending API changes for Batch [ Position ] Updates.
Thanks.
-- You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/dlywtO6drp8J.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment