Proxy support wanted

Bug #1369452 reported by Bjoern G.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Google-Tasks-Indicator
New
Undecided
Unassigned

Bug Description

Hi folks,

unfortunatelly, the google-task-indicator does not recognize the proxy system settings...

==================================
Google-Tasks-Indicator version: 0.5.2-0.extras14.04.0
#####################################################
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 537, in urlopen
    conn = self._get_conn(timeout=pool_timeout)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 299, in _get_conn
    return conn or self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in _new_conn
    return self._prepare_conn(connection)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 686, in _prepare_conn
    connection.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 124, in connect
    self._tunnel()
  File "/usr/lib/python3.4/http/client.py", line 805, in _tunnel
    message.strip()))
OSError: Tunnel connection failed: 407 Proxy Authentication Required

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 330, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 584, in urlopen
    'Socket error: %s.' % e)
urllib3.exceptions.ProxyError: Cannot connect to proxy. Socket error: Tunnel connection failed: 407 Proxy Authentication Required.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/google-tasks-indicator/preferences_dialog.py", line 263, in on_switch1_changed
    if gta.do_refresh_authorization() is None:
  File "/usr/share/google-tasks-indicator/services.py", line 340, in do_refresh_authorization
    response = self.session.request('POST',self.token_url,data=data)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 383, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 486, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 381, in send
    raise ProxyError(e)
requests.exceptions.ProxyError: Cannot connect to proxy. Socket error: Tunnel connection failed: 407 Proxy Authentication Required.
==================================

$ env | grep -i "proxy"

http_proxy=http://user:password@1xx.1xx.1xx.2xx:8080/
UBUNTU_MENUPROXY=1
https_proxy=https://user:password@1xx.1xx.1xx.2xx:8080/
no_proxy=1xx.1xx.0xx.0xx./24,1xx.1xx.2xx.3xx/24

==================================

Is it possible to add this feature for authenticating through proxy servers ?

Regards

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.