Project

General

Profile

Defect #103

socket.error: [Errno 104] Connection reset by peer

Added by Deoren Moor over 4 years ago. Updated over 4 years ago.

Status:
Assigned
Priority:
Normal
Assignee:
Category:
Scraping
Target version:
Start date:
09/23/2012
Due date:
% Done:

0%

Affected Version:
devel
Resolution:

Description

Traceback (most recent call last):
  File "/usr/local/bin/email_ebook_deals.py", line 513, in <module>
    main()
  File "/usr/local/bin/email_ebook_deals.py", line 472, in main
    site_content = fetch_page(site)
  File "/usr/local/bin/email_ebook_deals.py", line 200, in fetch_page
    response = urllib2.urlopen(request)
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 394, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 412, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1201, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1174, in do_open
    r = h.getresponse(buffering=True)
  File "/usr/lib/python2.7/httplib.py", line 1027, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 407, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 365, in _read_status
    line = self.fp.readline()
  File "/usr/lib/python2.7/socket.py", line 447, in readline
    data = self._sock.recv(self._rbufsize)
socket.error: [Errno 104] Connection reset by peer

Related issues

Related to Defect #86: Page scraping timeouts are not handled properly Assigned 11/29/2011

History

#1 Updated by Deoren Moor over 4 years ago

Looks like it was related to these feeds:

The first one was probably enough to cause the script to bomb out.

Also available in: Atom PDF