[microblogging] HTTP Error handling

Bug #374029 reported by Stefano Rivera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ibid
Fix Released
Medium
Stefano Rivera

Bug Description

logs/titan.tesrt.2009.05.log:2009/05/09 11:35:08 <tesrt> dazzle tweet 3
logs/titan.tesrt.2009.05.log:2009/05/09 11:35:10 <Dazzle> That didn't seem to agree with me

2009-05-09 11:35:09,986 ERROR core.dispatcher: Exception occured in Twitter processor of lookup plugin
Traceback (most recent call last):
  File "/home/dazzle/ibid/dazzle/ibid/core.py", line 23, in _process
    processor.process(event)
  File "/home/dazzle/ibid/dazzle/ibid/plugins/__init__.py", line 55, in process
    method(event, *match.groups())
  File "/home/dazzle/ibid/dazzle/ibid/plugins/lookup.py", line 231, in update
    event.addresponse(u'%(screen_name)s: "%(text)s"', self.remote_update(service.lower(), int(id)))
  File "/home/dazzle/ibid/dazzle/ibid/plugins/lookup.py", line 205, in remote_update
    f = urlopen('%sstatuses/show/%s.json' % (self.services[service], id))
  File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 425, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

logs/titan.tesrt.2009.05.log:2009/05/09 11:35:18 <tesrt> dazzle tweet 44
logs/titan.tesrt.2009.05.log:2009/05/09 11:35:19 <Dazzle> I'm not feeling too well

2009-05-09 11:35:19,456 ERROR core.dispatcher: Exception occured in Twitter processor of lookup plugin
Traceback (most recent call last):
  File "/home/dazzle/ibid/dazzle/ibid/core.py", line 23, in _process
    processor.process(event)
  File "/home/dazzle/ibid/dazzle/ibid/plugins/__init__.py", line 55, in process
    method(event, *match.groups())
  File "/home/dazzle/ibid/dazzle/ibid/plugins/lookup.py", line 231, in update
    event.addresponse(u'%(screen_name)s: "%(text)s"', self.remote_update(service.lower(), int(id)))
  File "/home/dazzle/ibid/dazzle/ibid/plugins/lookup.py", line 205, in remote_update
    f = urlopen('%sstatuses/show/%s.json' % (self.services[service], id))
  File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 425, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden

Revision history for this message
Stefano Rivera (stefanor) wrote :
Download full text (3.2 KiB)

Also:
logs/titan.tesrt.2009.05.log:2009/05/09 11:35:49 <tesrt> latest tweet cricinfo
logs/titan.tesrt.2009.05.log:2009/05/09 11:35:50 <Dazzle> That didn't go down very well. Burp.

2009-05-09 11:35:50,140 ERROR core.dispatcher: Exception occured in Twitter processor of lookup plugin
Traceback (most recent call last):
  File "/home/dazzle/ibid/dazzle/ibid/core.py", line 23, in _process
    processor.process(event)
  File "/home/dazzle/ibid/dazzle/ibid/plugins/__init__.py", line 55, in process
    method(event, *match.groups())
  File "/home/dazzle/ibid/dazzle/ibid/plugins/lookup.py", line 235, in latest
    event.addresponse(u'"%(text)s" %(ago)s ago, %(url)s', self.remote_latest(service.lower(), user))
  File "/home/dazzle/ibid/dazzle/ibid/plugins/lookup.py", line 216, in remote_latest
    latest = statuses[0]
IndexError: list index out of range

logs/titan.tesrt.2009.05.log:2009/05/09 11:35:58 <tesrt> latest tweet news
logs/titan.tesrt.2009.05.log:2009/05/09 11:35:59 <Dazzle> That didn't go down very well. Burp.

2009-05-09 11:35:59,563 ERROR core.dispatcher: Exception occured in Twitter processor of lookup plugin
Traceback (most recent call last):
  File "/home/dazzle/ibid/dazzle/ibid/core.py", line 23, in _process
    processor.process(event)
  File "/home/dazzle/ibid/dazzle/ibid/plugins/__init__.py", line 55, in process
    method(event, *match.groups())
  File "/home/dazzle/ibid/dazzle/ibid/plugins/lookup.py", line 235, in latest
    event.addresponse(u'"%(text)s" %(ago)s ago, %(url)s', self.remote_latest(service.lower(), user))
  File "/home/dazzle/ibid/dazzle/ibid/plugins/lookup.py", line 216, in remote_latest
    latest = statuses[0]
IndexError: list index out of range

2009/05/09 11:36:10 <tesrt> latest tweet from cricinfo
2009/05/09 11:36:12 <Dazzle> That didn't seem to agree with me

2009-05-09 11:36:11,989 ERROR core.dispatcher: Exception occured in Twitter processor of lookup plugin
Traceback (most recent call last):
  File "/home/dazzle/ibid/dazzle/ibid/core.py", line 23, in _process
    processor.process(event)
  File "/home/dazzle/ibid/dazzle/ibid/plugins/__init__.py", line 55, in process
    method(event, *match.groups())
  File "/home/dazzle/ibid/dazzle/ibid/plugins/lookup.py", line 235, in latest
    event.addresponse(u'"%(text)s" %(ago)s ago, %(url)s', self.remote_latest(service.lower(), user))
  File "/home/dazzle/ibid/dazzle/ibid/plugins/lookup.py", line 216, in remote_latest
    latest = statuses[0]
IndexError: list index out of range

2009/05/09 11:36:17 <tesrt> latest tweet from news
2009/05/09 11:36:18 <Dazzle> I'm not feeling too well

2009-05-09 11:36:18,853 ERROR core.dispatcher: Exception occured in Twitter processor of lookup plugin
Traceback (most recent call last):
  File "/home/dazzle/ibid/dazzle/ibid/core.py", line 23, in _process
    processor.process(event)
  File "/home/dazzle/ibid/dazzle/ibid/plugins/__init__.py", line 55, in process
    method(event, *match.groups())
  File "/home/dazzle/ibid/dazzle/ibid/plugins/lookup.py", line 235, in latest
    event.addresponse(u'"%(text)s" %(ago)s ago, %(url)s', self.remote_latest(service.lower(), user))
  File "/home/dazzle/ibid/dazzle/ibid/plugins/lookup.py", line...

Read more...

Changed in ibid:
assignee: nobody → Stefano Rivera (stefanor)
status: New → In Progress
Changed in ibid:
status: In Progress → Fix Released
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.