Ebeo / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

YouTube upload fails when using proxy #442

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
 I am using the .Net Framework and I am trying to upload a video to 
YouTube using Proxy server. When I upload without a proxy, it works 
with no problems, but when I try to use a proxy ... well it does not 
work. 

 First, here is the code I use: (the exact same code works without 
proxy) 
YouTubeService service = new YouTubeService(kname, kkey); 
service.setUserCredentials(user,password); 
GDataRequestFactory factory = 
(GDataRequestFactory)service.RequestFactory; 
System.Net.WebProxy myProxy = new 
System.Net.WebProxy("69.172.233.250","2400"); //I also tried with 
http://ip:port and ip:port ... everything 
myProxy.Credentials = new 
System.Net.NetworkCredential("it4213","zYHugaNEZJ"); 
myProxy.BypassProxyOnLocal = false; 
factory.Proxy = myProxy; 
service.Upload(newEntry); 

 Now as I said, without proxies, it works. I tested the proxy on a 
simple site (with httpwebrequest) like google and it works. It dosen't 
work in the API :( 
 The Exception I get is: http://www.sodevrom.net/exception.jpg 
(check the image) 

 I tested this on 4 different computers (with different IP's) and it 
does not work. 
 I would really appreciate some help with this issue.

What version of the product are you using? On what operating system?
Gdata 1.6 . Tested on Windows XP/Vista/7

Original issue reported on code.google.com by vladcris...@yahoo.com on 12 Nov 2010 at 6:12

GoogleCodeExporter commented 9 years ago
 It seems that the problem appears ONLY when uploading videos. I tried to simply get video info (and authenticating) and it worked.

Original comment by vladcris...@yahoo.com on 13 Nov 2010 at 3:05

GoogleCodeExporter commented 9 years ago
Are you using the latest version of the library code?
Revision 1073 added a fix for the proxy issue:

http://code.google.com/p/google-gdata/source/detail?r=1073

Original comment by ccherub...@google.com on 18 Mar 2011 at 1:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
 Hello,
 Still does not work. Here is what I am getting:
Google.GData.Client.GDataRequestException: Execution of request failed: 
http://uploads.gdata.youtube.com/feeds/api/users/default/uploads ---> 
System.Net.WebException: The remote server returned an error: (417) Expectation 
Failed.

 I than added:
System.Net.ServicePointManager.Expect100Continue = false;

 After I added that, it sends this error:
Google.GData.Client.GDataRequestException: Execution of request failed: 
http://uploads.gdata.youtube.com/feeds/api/users/default/uploads ---> 
System.Net.WebException: This request requires buffering data to succeed.

 Any ideas?

Original comment by sodev...@gmail.com on 18 Mar 2011 at 6:25

GoogleCodeExporter commented 9 years ago
If this is still happening with version 1.8, please capture the HTTP traffic 
using Fiddler and share the capture here.
Thanks

Original comment by ccherub...@google.com on 29 Jul 2011 at 10:13

GoogleCodeExporter commented 9 years ago
Never got the HTTP capture, I assume the issue was fixed in rev. 1073.
Feel free to reopen if can still be reproduced.

Original comment by ccherub...@google.com on 19 Apr 2012 at 11:18