bugGNU FM - Bugs: bug #26693, lastscrape.py - urllib fails to...


bug #26693: lastscrape.py - urllib fails to open page sometimes

Submitted by:  Petr Viktorin <encukou>
Submitted on:  Wed 27 May 2009 09:11:45 AM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 27 May 2009 09:11:45 AM UTC, original submission:

As reported on the mailing list by Henrique http://lists.autonomo.us/pipermail/libre-fm/2009-May/000682.html:

Traceback (most recent call last):
File "/home/henriquemaia/Desktop/lastscrape-beta/gui.py", line 339, in run
File "/home/henriquemaia/Desktop/lastscrape-beta/lastscrape.py", line 80, in fetch_tracks
for artist, track, timestamp in tracks:
File "/home/henriquemaia/Desktop/lastscrape-beta/lastscrape.py", line 32, in parse_page
soup = BeautifulSoup(urllib2.urlopen(page),
File "/usr/lib/python2.6/urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 389, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 502, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 421, in error
result = self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 361, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 597, in http_error_302
return self.parent.open(new)
File "/usr/lib/python2.6/urllib2.py", line 383, in open
response = self._open(req, data)
File "/usr/lib/python2.6/urllib2.py", line 401, in _open
'_open', req)
File "/usr/lib/python2.6/urllib2.py", line 361, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 1130, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.6/urllib2.py", line 1103, in do_open
r = h.getresponse()
File "/usr/lib/python2.6/httplib.py", line 950, in getresponse
File "/usr/lib/python2.6/httplib.py", line 390, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.6/httplib.py", line 354, in _read_status
raise BadStatusLine(line)

I'll investigate this with Wireshark & try to fix.

Petr Viktorin <encukou>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by encukou (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1