Proxy settings not working

Bug #1191370 reported by Helio Loureiro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Polly
Incomplete
Undecided
Unassigned

Bug Description

Polly doesn't get aware about proxy settings.

Revision history for this message
Conscious User (conscioususer) wrote :

Don't you have any details to add? Like, for example, the description of the proxy you are trying to use, or which error message you got?

I can't do magic from such a short, vague sentence.

Changed in polly:
status: New → Incomplete
Revision history for this message
Helio Loureiro (helioloureiro) wrote :

It is so simple as described. It doesn't work at all.

To register a twitter account, it doesn't detect proxy settings. Neither http_proxy or https_proxy enviroment variables. After register, it isn't stable to use proxy setup. From times to times it ignores the proxy setup and try to use direct connection (verified via tcpdump). It mostly get lost after return from a pm-suspend.

After you 'quit' and restart polly, it comes up with "localhost:8080" as proxy setup.

Maybe one important information missing is regarding the window manager: KDE and 4.10 over an Ubuntu LTS (12.04).

Polly at version 0.93.9-0~precise1.

Revision history for this message
Conscious User (conscioususer) wrote :

What exactly did you set on Edit->Preferences->Proxy?

Can you check in gconf-editor whether the proxy settings are kept when you quit and restart?

Revision history for this message
Helio Loureiro (helioloureiro) wrote :

Using gconf-editor, I can see proxy settings aren't commit accordingly.

Revision history for this message
Helio Loureiro (helioloureiro) wrote :

And it remains not working. It loads timeline once and... that's all. It hangs.

Starting polly from console, I can se the following:

Polly 0.93.9 (pre-alpha 3.9)
Copyright (C) 2011 Marcelo Hashimoto
cache path: /home/ehellou/.cache/polly
config path: /home/ehellou/.config/polly
data home: /home/ehellou/.local/share/polly
initializing... done
DEBUG: helioloureiro connected successfully
Exception in thread Thread-15:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/dist-packages/polly/__init__.py", line 241, in run
    self.callback(*self.args)
  File "/usr/lib/python2.7/dist-packages/polly/twitter/realtime.py", line 421, in _buffer_loop
    del data[:]
TypeError: unhashable type

Revision history for this message
Conscious User (conscioususer) wrote :

What happens when you set the parameters directly in gconf-editor?

(quit and restar Polly to be sure)

Revision history for this message
Helio Loureiro (helioloureiro) wrote :

It keeps the proxy information, access the timeline once and... hangs with an output like the one in my previous comment.

Revision history for this message
Helio Loureiro (helioloureiro) wrote :

I attempted using corporate VPN.

So I started session with proxy flag enabled. And polly didn't connect directly. Once I disable the checkbox, timeline updated accordingly.

Once I started VPN and enabled proxy, it failed again, with the same previous error:

Polly 0.93.9 (pre-alpha 3.9)
Copyright (C) 2011 Marcelo Hashimoto
cache path: /home/ehellou/.cache/polly
config path: /home/ehellou/.config/polly
data home: /home/ehellou/.local/share/polly
initializing... done
DEBUG: helioloureiro disconnected because of curl error 5
DEBUG: helioloureiro will reconnect in 0.25 seconds
DEBUG: helioloureiro disconnected because of curl error 5
DEBUG: helioloureiro will reconnect in 0.5 seconds
DEBUG: helioloureiro disconnected because of curl error 5
DEBUG: helioloureiro will reconnect in 0.75 seconds
DEBUG: helioloureiro disconnected because of curl error 5
DEBUG: helioloureiro will reconnect in 1.0 seconds
DEBUG: helioloureiro disconnected because of curl error 5
DEBUG: helioloureiro will reconnect in 1.25 seconds
DEBUG: helioloureiro disconnected because of curl error 5
DEBUG: helioloureiro will reconnect in 1.5 seconds
DEBUG: helioloureiro disconnected because of curl error 5
DEBUG: helioloureiro will reconnect in 1.75 seconds
DEBUG: helioloureiro connected successfully
DEBUG: helioloureiro disconnected because of timeout
DEBUG: helioloureiro will reconnect in 0.25 seconds
DEBUG: helioloureiro disconnected because of curl error 28
DEBUG: helioloureiro will reconnect in 0.5 seconds
DEBUG: helioloureiro disconnected because of curl error 28
DEBUG: helioloureiro will reconnect in 0.75 seconds
DEBUG: helioloureiro disconnected because of curl error 28
DEBUG: helioloureiro will reconnect in 1.0 seconds
DEBUG: helioloureiro connected successfully
Exception in thread Thread-144:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/dist-packages/polly/__init__.py", line 241, in run
    self.callback(*self.args)
  File "/usr/lib/python2.7/dist-packages/polly/twitter/realtime.py", line 421, in _buffer_loop
    del data[:]
TypeError: unhashable type

Revision history for this message
Conscious User (conscioususer) wrote :

I set up a local squid proxy and couldn't reproduce this bug.

Any particularities of the proxy you are using?

Revision history for this message
Helio Loureiro (helioloureiro) wrote :

As far as I can see it is a bluecoat proxy:

http://www.bluecoat.com/

Connecting on it:

telnet www-proxy.company.com 8080
Trying 1.2.3.4...
Connected to www-proxy.company.com
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Proxy-Connection: close
Connection: close
Content-Length: 1442

Connection closed by foreign host.

I can't tell further than this since it is a corporate proxy. But, except Polly, everything else works just fine.

Revision history for this message
Conscious User (conscioususer) wrote :

Does this proxy use authentication?

Revision history for this message
Helio Loureiro (helioloureiro) wrote :

Nops. Only proxy.

env http_proxy="http://www-proxy.company.com:8080" https_proxy="http://www-proxy.company.com:8080" lynx -dump http://twitter.com | head -10
   #[1]Twitter

     * [2]Twitter

   Search query ____________________ (Submit) Search ____________________
     *

     *

     * []

Revision history for this message
Conscious User (conscioususer) wrote :

I'm stuck, then. I can't figure out a way to reproduce this.

The issue might be on SocksiPy rather than on Polly, but I'm not sure.

Revision history for this message
Helio Loureiro (helioloureiro) wrote :

Is there a way to enable debug?

Revision history for this message
Conscious User (conscioususer) wrote :

Not as far as I know. I have no control over the proxy part, it's a third-party library.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.