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 Crash Report when Accessing API text.json #71

Closed AlJohri closed 10 years ago

AlJohri commented 10 years ago

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:

http://capitolwords.org/api/text.json?phrase=obama+administration&apikey=APIKEY

drinks commented 10 years ago

Yikes, Solr died. Fixed!