propublica / Capitol-Words

Scraping, parsing and indexing the daily Congressional Record to support phrase search over time, and by legislator and date
BSD 3-Clause "New" or "Revised" License
122 stars 34 forks source link

Django Crashing on Requests #100

Closed mradzwilla closed 8 years ago

mradzwilla commented 8 years ago

I apologize if this issue is related to something I'm doing wrong, but I'm having the exact same issue as a previous ticket found here: https://github.com/sunlightlabs/Capitol-Words/issues/71

From my console:

Piston/0.2.2 (Django 1.3) crash report:

Traceback (most recent call last):

File "/projects/capwords/src/Capitol-Words/cwod_site/cwod_api/views.py", line 825, in read return super(FullTextSearchHandler, self).read(request, _args, *_kwargs)

File "/projects/capwords/src/Capitol-Words/cwod_site/cwod_api/views.py", line 175, in read results = urllib2.urlopen(url).read()

File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout)

File "/usr/lib/python2.6/urllib2.py", line 391, in open response = self._open(req, data)

File "/usr/lib/python2.6/urllib2.py", line 409, in _open '_open', req)

File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain result = func(*args)

File "/usr/lib/python2.6/urllib2.py", line 1170, in http_open return self.do_open(httplib.HTTPConnection, req)

File "/usr/lib/python2.6/urllib2.py", line 1145, in do_open raise URLError(err)

URLError: <urlopen error [Errno 111] Connection refused>

mradzwilla commented 8 years ago

I just ran my code today and everything is working normally again. I'm gong to close the issue, though I'm not sure if this issue was just a fluke or a persisting bug.