GoogleJsonResponseException code: 400 : The request metadata specifies an invali d video description.

GoogleJsonResponseException code: 400 : The request metadata specifies an invali d video description.

Hi,

I have made a Java program to upload the video on youtube but it is giving following error:

Initiation Started
Initiation Completed
GoogleJsonResponseException code: 400 : The request metadata specifies an invali
d video description.
com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Reque
st
{
  "code" : 400,
  "errors" : [ {
    "domain" : "youtube.video",
    "location" : "body.snippet.description",
    "locationType" : "other",
    "message" : "The request metadata specifies an invalid video description.",
    "reason" : "invalidDescription"
  } ],
  "message" : "The request metadata specifies an invalid video description."
}
        at com.google.api.client.googleapis.json.GoogleJsonResponseException.fro
m(GoogleJsonResponseException.java:143)
        at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClie
ntRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:115)
        at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClie
ntRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
        at com.google.api.client.googleapis.services.AbstractGoogleClientRequest
.executeUnparsed(AbstractGoogleClientRequest.java:421)
        at com.google.api.client.googleapis.services.AbstractGoogleClientRequest
.executeUnparsed(AbstractGoogleClientRequest.java:340)
        at com.google.api.client.googleapis.services.AbstractGoogleClientRequest
.execute(AbstractGoogleClientRequest.java:458)

How to resolve the Error?

Thanks

View Answers

July 23, 2015 at 8:52 AM

Hi,

This error was due to presence of <> tag in the video description.

Following was the description:

<int> method in a program.....

After removing the <> tags error resolved.

Thanks









Related Tutorials/Questions & Answers:

Ads