I can confirm both the bug and the apparent correctness of the patch. I
just applied the patch to my
/usr/share/pyshared/gwibber/microblog/network.py (current Maverick) and
now my Gwibber finally updates through the SOCKS proxy again.

Thanks for the patch!

-- 
You received this bug notification because you are a member of Gwibber
Bug Heros, which is subscribed to Gwibber.
https://bugs.launchpad.net/bugs/658554

Title:
  Socks 4/5 proxies not working with Gwibber

Status in Gwibber:
  In Progress

Bug description:
  Upon upgrade from Ubuntu 10.04 (official) to Ubuntu 10.10 (official), I 
noticed that I was getting nothing showing up in my Gwibber stream.  I did a 
little investigation and found that I was getting the following output when 
running gwibber-service:

-----------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/network.py", line 
57, in __init__
    self.curl.perform()
error: (56, 'Proxy CONNECT aborted')
-----------------------------------

and this was in the log file:
-----------------------------------
2010-10-11 11:39:43,497 - Gwibber Dispatcher - ERROR - Failed to communicate 
with https://api.twitter.com/1<personal stuff>
2010-10-11 11:39:43,499 - Gwibber Dispatcher - ERROR - Failed to parse the 
response, error was: No JSON object could be decoded
-----------------------------------

I often use a SOCKS proxy via "ssh -D ..." and it appears that gwibber-service 
was failing to connect when I would use the proxy since it worked fine when I 
turned it off.  It appears that [py]curl is not correctly setting the correct 
proxy options with the proxy url that is being used, in my case 
"socks://localhost:50001".  On the plus side, this is an easy fix.  I simply 
set the PROXYTYPE opt to PROXYTYPE_SOCKS4 (it also works with PROXYTYPE_SOCKS5) 
and everything works perfectly, with my proxy.

I've attached a small patch that addresses this issue.



_______________________________________________
Mailing list: https://launchpad.net/~gwibber-bugs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~gwibber-bugs
More help   : https://help.launchpad.net/ListHelp

Reply via email to