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

 
 

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

Submitter:  Petr Viktorin <encukou>
Submitted:  Wed 27 May 2009 09:11:45 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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
sleep_func=self.sleep):
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
response.begin()
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)
BadStatusLine

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code