unity-lens-radios crashed with private_lib.onlineradioinfo.ConnectionError in _url_request(): URLError(error(110, 'Tempo esgotado para conexão'),)

Bug #1070842 reported by Welton Rodrigo Torres Nascimento
68
This bug affects 19 people
Affects Status Importance Assigned to Milestone
unity-lens-radios (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm receiving a apport crash for this.

What triggers that is a network connection without internet access.

"Tempo esgotado para conexão" is portuguese for "Connection timeout"

unity-lens-radios:
  Instalado: 0.2-0ubuntu1
  Candidato: 0.2-0ubuntu1
  Tabela de versão:
 *** 0.2-0ubuntu1 0
        500 http://br.archive.ubuntu.com/ubuntu/ quantal/universe i386 Packages
        100 /var/lib/dpkg/status

Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python3.2/urllib/request.py", line 1140, in do_open
     h.request(req.get_method(), req.selector, req.data, headers)
   File "/usr/lib/python3.2/http/client.py", line 970, in request
     self._send_request(method, url, body, headers)
   File "/usr/lib/python3.2/http/client.py", line 1008, in _send_request
     self.endheaders(body)
   File "/usr/lib/python3.2/http/client.py", line 966, in endheaders
     self._send_output(message_body)
   File "/usr/lib/python3.2/http/client.py", line 811, in _send_output
     self.send(msg)
   File "/usr/lib/python3.2/http/client.py", line 749, in send
     self.connect()
   File "/usr/lib/python3.2/http/client.py", line 727, in connect
     self.timeout, self.source_address)
   File "/usr/lib/python3.2/socket.py", line 426, in create_connection
     raise err
   File "/usr/lib/python3.2/socket.py", line 417, in create_connection
     sock.connect(sa)
 socket.error: [Errno 110] Tempo esgotado para conexão

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/usr/share/unity-lens-radios/private_lib/onlineradioinfo.py", line 200, in _url_request
     response = urllib.request.urlopen(req)
   File "/usr/lib/python3.2/urllib/request.py", line 139, in urlopen
     return opener.open(url, data, timeout)
   File "/usr/lib/python3.2/urllib/request.py", line 370, in open
     response = self._open(req, data)
   File "/usr/lib/python3.2/urllib/request.py", line 388, in _open
     '_open', req)
   File "/usr/lib/python3.2/urllib/request.py", line 348, in _call_chain
     result = func(*args)
   File "/usr/lib/python3.2/urllib/request.py", line 1160, in http_open
     return self.do_open(http.client.HTTPConnection, req)
   File "/usr/lib/python3.2/urllib/request.py", line 1143, in do_open
     raise URLError(err)
 urllib.error.URLError: <urlopen error [Errno 110] Tempo esgotado para conexão>

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/usr/share/unity-lens-radios/unity-lens-radios", line 136, in <module>
     daemon = Daemon()
   File "/usr/share/unity-lens-radios/unity-lens-radios", line 59, in __init__
     self.lens.props.filters = self.radiohandler.get_unity_radio_filters()
   File "/usr/share/unity-lens-radios/private_lib/radiohandler.py", line 66, in get_unity_radio_filters
     for genre in OnlineRadioInfo().get_categories_by_category_type('genre'):
   File "/usr/share/unity-lens-radios/private_lib/onlineradioinfo.py", line 134, in get_categories_by_category_type
     return self._get_json_result_for_parameters('menu/valuesofcategory', category='_{0}'.format(category_type))
   File "/usr/share/unity-lens-radios/private_lib/onlineradioinfo.py", line 149, in _get_json_result_for_parameters
     response = self._url_request(path, **parameters)
   File "/usr/share/unity-lens-radios/private_lib/onlineradioinfo.py", line 205, in _url_request
     raise ConnectionError(error)
 private_lib.onlineradioinfo.ConnectionError: URLError(error(110, 'Tempo esgotado para conexão'),)

Related branches

description: updated
Revision history for this message
Welton Rodrigo Torres Nascimento (motoster) wrote :

Got this reproducible.

All you need is a network connection without internet access.

Login as any user in your machine and wait for the crash.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity-lens-radios (Ubuntu):
status: New → Confirmed
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.