Hi,
I'm getting this error whenever I use the legislator geo lookup API:
Sunlight state target Piston/0.2.3rc1 (Django 1.6.2) crash report:
Traceback (most recent call last):
File "/projects/openstates/virt/src/billy/billy/web/api/handlers.py", line 88, in new_read
obj = old_read(*args, **kwargs)
File "/projects/openstates/virt/src/billy/billy/web/api/handlers.py", line 396, in read
resp = json.load(urllib2.urlopen(url))
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 502: Bad Gateway
Here's the request:
http://openstates.org/api/v1/legislators/geo/?lat=37.6520841&long=-77.58417519999999