Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

"There was a problem communicating with the service." when upload video for youtube File > 40MB #167

Open
GoogleCodeExporter opened this issue Apr 6, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Execute YoutubeWriteClient.java
2. Upload a new Video (5)
3. First, type in the path to the movie file: D:\Music\diddy_ft_nicole_-
_come_to_me.mpg
4. What is the MIME type of this file? (ex. 'video/quicktime' for .mov)
video/mpeg
5. What should I call this video? my second video from api

What is the expected output? What do you see instead?
I expected an result like this "Video uploaded successfully!" and my new 
video published... 

but instead I see
There was a problem communicating with the service.
java.io.IOException: Error writing request body to server
    at 
sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkErro
r(Unknown Source)
    at 
sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write
(Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.write(Unknown Source)
    at com.google.gdata.data.media.MediaSource$Output.writeTo
(MediaSource.java:88)
    at 
com.google.gdata.data.media.MediaBodyPart$MediaSourceDataHandler.writeTo
(MediaBodyPart.java:74)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1381)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:852)
    at javax.mail.internet.MimeMultipart.writeTo
(MimeMultipart.java:452)
    at 
com.google.gdata.wireformats.output.media.MediaMultipartGenerator.generate
(MediaMultipartGenerator.java:58)
    at 
com.google.gdata.wireformats.output.media.MediaMultipartGenerator.generate
(MediaMultipartGenerator.java:37)
    at com.google.gdata.client.Service.writeRequestData
(Service.java:1831)
    at com.google.gdata.client.media.MediaService.insert
(MediaService.java:389)
    at YouTubeWriteClient.uploadVideo(YouTubeWriteClient.java:498)
    at YouTubeWriteClient.main(YouTubeWriteClient.java:818)


What version of the product are you using? On what operating system?
Version 1.35.0 on Windows XP

Please provide any additional information below.
When the file is less than 15 MB working correctly, but when the file is 
for example 50 MB I see this bug "There was a problem communicating with 
the service."

Please let me know your answers ASAP.

Thanks in advance.

Original issue reported on code.google.com by alonso...@gmail.com on 7 Aug 2009 at 3:57

Attachments:

@GoogleCodeExporter
Copy link
Author

I just tried it on a linux box with a 100MB file., and it works.  From your 
stack
trace it looks like your are using the youtube sample.  Do you have any local
modifications in the sample (didnt seem to have any at first glance... just 
trying to
make sure)?  And what is the jdk version are you using?

Original comment by vbarat...@gmail.com on 9 Aug 2009 at 6:44

  • Changed state: RequestedFeedback

@GoogleCodeExporter
Copy link
Author

Hi vbarathan,

This file YouTubeWriteClient.java not has been modified, only for use my 
developer 
key, user and password.

My JDK version is "jdk1.6.0_13".

I'm using Eclipse on Windows XP.

Maybe the difference is because you are using Linux or a different JDK version.

Thanks in advances.

Original comment by alonso...@gmail.com on 10 Aug 2009 at 9:04

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant