← Back to team overview

launchpad-dev team mailing list archive

Strange error from web service

 

Hello,

I just got this in my cron mail.  I've never seen this error before.

Is this a bug in launchpadlib, or is this something that launchpadlib
scripts should be written defensively against?

jml


---------- Forwarded message ----------
From: Cron Daemon <root@xxxxxxxxx>
Date: Fri, Nov 19, 2010 at 7:40 AM
Subject: Cron <jml@tusk> PYTHONPATH=/home/jml/src/bugjam
/home/jml/src/bugjam/bin/update-web launchpad-project 2010-12-10
/home/jml/public_html/lp-bug-jam-2010/index.html
To: jml@xxxxxxxxx


Traceback (most recent call last):
 File "/home/jml/src/bugjam/bin/update-web", line 8, in <module>
   sys.exit(main(sys.argv))
 File "/home/jml/src/bugjam/bugjam/web.py", line 37, in main
   bug_change = get_stats(pillar_name, start_date)
 File "/home/jml/src/bugjam/bugjam/stats.py", line 184, in get_stats
   pillar = Pillar(launchpad.projects[pillar_name])
 File "/usr/lib/pymodules/python2.6/lazr/restfulclient/resource.py",
line 912, in __getitem__
   unicode(self._root._browser.get(url)))
 File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py",
line 316, in get
   response, content = self._request(url, extra_headers=headers)
 File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py",
line 260, in _request
   str(url), method=method, body=data, headers=headers)
 File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 1099, in request
   (response, new_content) = self._request(conn, authority, uri,
request_uri, method, body, headers, redirections, cachekey)
 File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py",
line 154, in _request
   redirections, cachekey)
 File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 901, in _request
   (response, content) = self._conn_request(conn, request_uri, method,
body, headers)
 File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py",
line 159, in _conn_request
   conn, request_uri, method, body, headers)
 File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 871,
in _conn_request
   response = conn.getresponse()
 File "/usr/lib/python2.6/httplib.py", line 986, in getresponse
   response.begin()
 File "/usr/lib/python2.6/httplib.py", line 391, in begin
   version, status, reason = self._read_status()
 File "/usr/lib/python2.6/httplib.py", line 355, in _read_status
   raise BadStatusLine(line)
httplib.BadStatusLine



Follow ups