timeout in Weather: timed out

Bug #499615 reported by ernest_21
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Awn Extras
Fix Released
Medium
onox

Bug Description

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/awn/extras/threadqueue.py", line 72, in do_request
    r = func(*args, **kwargs)
  File "/usr/share/avant-window-navigator/applets/weather/weather.py", line 523, in get_weather_map
    result = re.findall(mapExp, usock.read())
  File "/usr/lib/python2.6/socket.py", line 327, in read
    data = self._sock.recv(rbufsize)
  File "/usr/lib/python2.6/httplib.py", line 517, in read
    return self._read_chunked(amt)
  File "/usr/lib/python2.6/httplib.py", line 569, in _read_chunked
    value += self._safe_read(amt)
  File "/usr/lib/python2.6/httplib.py", line 617, in _safe_read
    chunk = self.fp.read(min(amt, MAXAMOUNT))
  File "/usr/lib/python2.6/socket.py", line 351, in read
    data = self._sock.recv(left)
timeout: timed out

Related branches

Mark Lee (malept)
tags: added: applet traceback weather
Changed in awn-extras:
assignee: nobody → onox (onox)
importance: Undecided → Medium
onox (onox)
Changed in awn-extras:
milestone: none → 0.4.0
status: New → Confirmed
Revision history for this message
onox (onox) wrote :

Fixed in revision 1875. If a timeout occurs, it will retry up to 3 times (10 seconds between each), and if it still fails it will show a notification.

Changed in awn-extras:
status: Confirmed → Fix Committed
Revision history for this message
cajunlibra (rossmkennedy) wrote :

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/awn/extras/threadqueue.py", line 64, in run
    r = func(*args, **kwargs)
  File "/usr/share/avant-window-navigator/applets/weather/weather.py", line 186, in bound_func
    return func(obj, *args, **kwargs)
  File "/usr/share/avant-window-navigator/applets/weather/weather.py", line 623, in get_weather_map
    result = re.findall(mapExp, usock.read())
  File "/usr/lib/python2.6/socket.py", line 329, in read
    data = self._sock.recv(rbufsize)
  File "/usr/lib/python2.6/httplib.py", line 518, in read
    return self._read_chunked(amt)
  File "/usr/lib/python2.6/httplib.py", line 576, in _read_chunked
    value.append(self._safe_read(chunk_left))
  File "/usr/lib/python2.6/httplib.py", line 615, in _safe_read
    chunk = self.fp.read(min(amt, MAXAMOUNT))
  File "/usr/lib/python2.6/socket.py", line 353, in read
    data = self._sock.recv(left)
timeout: timed out

Revision history for this message
onox (onox) wrote :

Do you use a version that has revision >= 1875?

Revision history for this message
Nick (soapduk) wrote :

Applet Version: 0.3.9-rewrite-bzr1891-karmic1-1
Distro: Ubuntu 9.10
Method of Installation: Custom Repos: http://ppa.launchpad.net/awn-testing/ppa/ubuntu
Window Manager: Gnome
Video Card: Nvidia 7900 GS
Video Driver: 185.18.36

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/awn/extras/threadqueue.py", line 64, in run
    r = func(*args, **kwargs)
  File "/usr/share/avant-window-navigator/applets/weather/weather.py", line 186, in bound_func
    return func(obj, *args, **kwargs)
  File "/usr/share/avant-window-navigator/applets/weather/weather.py", line 623, in get_weather_map
    result = re.findall(mapExp, usock.read())
  File "/usr/lib/python2.6/socket.py", line 329, in read
    data = self._sock.recv(rbufsize)
  File "/usr/lib/python2.6/httplib.py", line 518, in read
    return self._read_chunked(amt)
  File "/usr/lib/python2.6/httplib.py", line 567, in _read_chunked
    value.append(self._safe_read(amt))
  File "/usr/lib/python2.6/httplib.py", line 615, in _safe_read
    chunk = self.fp.read(min(amt, MAXAMOUNT))
  File "/usr/lib/python2.6/socket.py", line 353, in read
    data = self._sock.recv(left)
timeout: timed out

Revision history for this message
onox (onox) wrote :

Please describe how to reproduce this bug; does it occur while you are disconnected from the internet or while online?

Please open /usr/share/avant-window-navigator/applets/weather/weather.py, then go to line 190. Insert a new line before that line, use spaces to indent the following at the same level as the content on the old line 190:

print type(e)

Then change on line 189, the following:

except StandardError:

to this:

except StandardError, e:

I hope this helps to identify the real type of the exception.

Changed in awn-extras:
status: Fix Committed → Confirmed
onox (onox)
Changed in awn-extras:
status: Confirmed → Incomplete
Revision history for this message
onox (onox) wrote :

Fixed in revision 1209.

Changed in awn-extras:
status: Incomplete → Fix Committed
Mark Lee (malept)
Changed in awn-extras:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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