| <class 'httplib.BadStatusLine'> | Python 2.6.5: /home/electron/bin/python Mon Feb 6 06:05:38 2012 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/electron/shinyshell.net/user.py in |
| 94 # handle last fm box only if a lastfm name was specified |
| 95 bluepear = Electron.bluepear.ProfileInformation() |
| 96 recenttracks = bluepear.lastfm_recent(user['lastfm']) |
| 97 |
| 98 tb = '<table cellpadding="0" cellspacing="0" class="lastfmtable">' |
| recenttracks undefined, bluepear = <Electron.bluepear.ProfileInformation instance>, bluepear.lastfm_recent = <bound method ProfileInformation.lastfm_recent of <Electron.bluepear.ProfileInformation instance>>, user = {'abouttext': u'hola everyone. i am bianca, or also known as ani...m using my crayon warrior name. warriors, unite~!', 'accounttype': 1, 'avatarrevision': 0L, 'birthday': u'1998-3-11', 'deviantart': u'Bebe-San/Pearly-Fey', 'email': u'bebepoke@hotmail.com', 'gender': u'f', 'homepage': u'', 'ipaddress': u'69.231.27.117', 'joindate': 1230510335L, ...} |
| /home/electron/shinyshell.net/Electron/bluepear.py in lastfm_recent(self=<Electron.bluepear.ProfileInformation instance>, username=u'Your Nintendo DS') |
| 98 |
| 99 # fetch the recent tracks file |
| 100 recenttracks = self.http_retrieve(host_name, recent_track_path, request_method) |
| 101 |
| 102 if recenttracks: |
| recenttracks undefined, self = <Electron.bluepear.ProfileInformation instance>, self.http_retrieve = <bound method ProfileInformation.http_retrieve of <Electron.bluepear.ProfileInformation instance>>, host_name = 'ws.audioscrobbler.com', recent_track_path = u'/1.0/user/Your Nintendo DS/recenttracks.txt', request_method = 'GET' |
| /home/electron/shinyshell.net/Electron/bluepear.py in http_retrieve(self=<Electron.bluepear.ProfileInformation instance>, host_name='ws.audioscrobbler.com', remote_path=u'/1.0/user/Your Nintendo DS/recenttracks.txt', request_method='GET') |
| 60 |
| 61 self.connection.request(request_method, remote_path) |
| 62 self.response = self.connection.getresponse() |
| 63 |
| 64 # handle errors, if they happened |
| self = <Electron.bluepear.ProfileInformation instance>, self.response = None, self.connection = <httplib.HTTPConnection instance>, self.connection.getresponse = <bound method HTTPConnection.getresponse of <httplib.HTTPConnection instance>> |
| /home/electron/lib/python2.6/httplib.py in getresponse(self=<httplib.HTTPConnection instance>) |
| 984 method=self._method) |
| 985 |
| 986 response.begin() |
| 987 assert response.will_close != _UNKNOWN |
| 988 self.__state = _CS_IDLE |
| response = <httplib.HTTPResponse instance>, response.begin = <bound method HTTPResponse.begin of <httplib.HTTPResponse instance>> |
| /home/electron/lib/python2.6/httplib.py in begin(self=<httplib.HTTPResponse instance>) |
| 389 # read until we get a non-100 response |
| 390 while True: |
| 391 version, status, reason = self._read_status() |
| 392 if status != CONTINUE: |
| 393 break |
| version undefined, status undefined, reason undefined, self = <httplib.HTTPResponse instance>, self._read_status = <bound method HTTPResponse._read_status of <httplib.HTTPResponse instance>> |
| /home/electron/lib/python2.6/httplib.py in _read_status(self=<httplib.HTTPResponse instance>) |
| 353 # Presumably, the server closed the connection before |
| 354 # sending a valid response. |
| 355 raise BadStatusLine(line) |
| 356 try: |
| 357 [version, status, reason] = line.split(None, 2) |
| global BadStatusLine = <class 'httplib.BadStatusLine'>, line = '' |
<class 'httplib.BadStatusLine'>:
args =
('',)
line =
''
message =
''