Monday, July 9, 2012

[YouTube-API] Re: The operation couldn’t be completed.failedWithStatus:400 data

Hi,

Can you think of any other circumstances when a too_long error would be returned for this field even though it is well within the documented limits for media:keywords?

In this thread I'm getting this error message even though the keywords specified are no longer than 150 characters in total, won't need any implied quotes, all fit between the 2 and 30 character hard limits for keyword length and otherwise appear to be acceptable:
  <media:keywords>testkeyword1,testkeyword10,testkeyword2,testkeyword3,testkeyword4,testkeyword5,testkeyword6,testkeyword7,testkeyword8,testkeyword9</media:keywords>

In addition these keywords are considered acceptable by the direct upload API when I haven't added any georss information to the upload's metadata. Any suggestions on what I can try to make this video upload work?

Thanks,
Matt

On Wednesday, 22 February 2012 09:39:52 UTC+11, Jeffrey Posnick wrote:
Hello,

 As the error indicates, the value you're providing for the keywords
element is too long. Try to use something shorter—I believe the
current limit on characters is around 500 total for all keywords.

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Feb 21, 1:35 am, viswanath beere <viswanath.be...@gmail.com> wrote:
> Hi ,
>
> I am trying to integrating YOUTUBE video upload functionality in my iphone
> and ipad project by using gdata code .when upload i am getting below type
> of error in my project.could please tell what is problem .
>
> serviceBase:<GDataServiceGoogleYouTube: 0x23f080>
> objectFetcher:<GDataHTTPUploadFetcher: 0x2255f0> failedWithStatus:400
> data:<?xml version='1.0'
> encoding='UTF-8'?><errors><error><domain>yt:validation</domain><code>too_lo ng</code><location
> type='xpath'>media:group/media:keywords/text()</location></error></errors>
> 2012-02-21 11:58:05.421 YouTubeTest[6208:707] error:Error
> Domain=com.google.GDataServiceDomain Code=400 "The operation couldn't be
> completed. (<?xml version='1.0'
> encoding='UTF-8'?><errors><error><domain>yt:validation</domain><code>too_lo ng</code><location
> type='xpath'>media:group/media:keywords/text()</location></error></errors>) "
> UserInfo=0x225b60 {NSLocalizedFailureReason=(<?xml version='1.0'
> encoding='UTF-8'?><errors><error><domain>yt:validation</domain><code>too_lo ng</code><location
> type='xpath'>media:group/media:keywords/text()</location></error></errors>) ,
> error=<?xml version='1.0'
> encoding='UTF-8'?><errors><error><domain>yt:validation</domain><code>too_lo ng</code><location
> type='xpath'>media:group/media:keywords/text()</location></error></errors>}
>
> Could please  help me .
>
> thank you very much.

--
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/-/iMkr8HiKVPsJ.
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