Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube Data API v3: Update of tags is send as comma separated string instead of list #927

SubshellDaniel opened this issue Feb 19, 2015 · 5 comments


None yet
5 participants
Copy link

commented Feb 19, 2015


when we upload a video we set the "videos.snippet.tags". The Upload is done via "videos.insert" (YouTube.videos().insert().execute()). On changes to the metadata we call "videos.update" (YouTube.videos().update().execute()).

In the Java library the tags of VideoSnippet are of type List<String>. Therefore I would assume that the library would create a JSON list from this Java list. But as we can see in our YouTube-Channel (, after updating the video the list of single tags are changed to a single long tag with comma separated words.

To further analyze this problem, I enabled the logging for HttpTransport to take a look at the transferred JSON. To my astonishment the update request contained only a single string in the JSON list:

"tags":["tag1, tag2, tag3"]

Even more astonishing is, that beside that the website shows exactly this tag, the API returns a list with the separated words in it's response. Also further "videos.list" request deliver a list with separate tags.

This is very confusing. I don't understand why the insert and update request differ, although the same Java object is used. It would be great if this can be fixed.



This comment has been minimized.

Copy link

commented Jul 3, 2015

The only difference in calling the library is how the Video object is created:

  • Upload: new Video()
  • Update: YouTube.videos().list().setId().execute().getItems().get(0)

The stack for accessing VideoSnippet.tags differs for the upload, because a MediaHttpUploader is used.

Thread [pool-5-thread-3] (Suspended (access of field tags in VideoSnippet)) 
    GeneratedMethodAccessor453.invoke(Object, Object[]) line: not available 
    Method.invoke(Object, Object...) line: 497  
    azB.a(Object) line: 77  
    azy.a(Object) line: 186 
    azy(azn).get(Object) line: 26   
    Field.get(Object) line: 393 
    FieldInfo.getFieldValue(Field, Object) line: 224    
    FieldInfo.getValue(Object) line: 197    
    DataMap$EntryIterator.hasNext() line: 155   
    GenericData$EntryIterator.hasNext() line: 254   
    JacksonGenerator(JsonGenerator).serialize(boolean, Object) line: 160    
    JacksonGenerator(JsonGenerator).serialize(boolean, Object) line: 172    
    JacksonGenerator(JsonGenerator).serialize(Object) line: 106 
    JsonHttpContent.writeTo(OutputStream) line: 78  
    GZipEncoding.encode(StreamingContent, OutputStream) line: 49    
    HttpEncodingStreamingContent.writeTo(OutputStream) line: 51 
    NetHttpRequest.execute() line: 79   
    HttpRequest.execute() line: 965 
+   MediaHttpUploader.executeCurrentRequestWithoutGZip(HttpRequest) line: 545   
+   MediaHttpUploader.executeCurrentRequest(HttpRequest) line: 562  
+   MediaHttpUploader.executeUploadInitiation(GenericUrl) line: 519 
+   MediaHttpUploader.resumableUpload(GenericUrl) line: 384 
+   MediaHttpUploader.upload(GenericUrl) line: 336  
+   YouTube$Videos$Insert(AbstractGoogleClientRequest).executeUnparsed(boolean) line: 418   
-   YouTube$Videos$Update(AbstractGoogleClientRequest).executeUnparsed(boolean) line: 410   

This comment has been minimized.

Copy link

commented Jan 18, 2019

Can you please try with latest version and reopen this issue if its not resolved?

@ajaaym ajaaym closed this Jan 18, 2019


This comment has been minimized.

Copy link

commented Feb 13, 2019

We got the same result with the latest release on Maven Central: v3-rev20190128-1.28.0

@sduskis sduskis reopened this Feb 13, 2019


This comment has been minimized.

Copy link

commented Mar 8, 2019

@ajaaym, can you please get someone to look at this?


This comment has been minimized.

Copy link

commented Mar 8, 2019

@sduskis yeah its in progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.