500 Internal Server Error - Multiple Districts with Boundary ID

55 views
Skip to first unread message

Aaron Kreider

unread,
Mar 4, 2014, 3:20:13 PM3/4/14
to fifty-sta...@googlegroups.com
I'm testing out geocoding addresses in MD (with Google's geocoder) and then using Open States to find the legislator.  The first two worked.  The third address gave me an error:

NetworkError: 500 INTERNAL SERVER ERROR - http://openstates.org/api/v1//legislators/geo/?lat=39.5447164&long=-77.10399439999998&apikey=8f39955b55d7450d9f73932701df54e1&callback=jQuery20308688839607813031_1393963597624&_=1393963597631"

If I open the URL directly I get:

Piston/0.2.3rc1 (Django 1.4.5) crash report: Traceback (most recent call last): File "/projects/openstates/src/billy/billy/web/api/handlers.py", line 86, in new_read obj = old_read(*args, **kwargs) File "/projects/openstates/src/billy/billy/web/api/handlers.py", line 416, in read boundary_id) ValueError: multiple districts with boundary_id: sldl/md-5


You can see my code at www.energyjustice.net/action/action.php
If you enter a street address and zip code it will geocode it and show you the legislators - you can do that safely without triggering any emails.

James Turk

unread,
Mar 5, 2014, 11:01:42 AM3/5/14
to fifty-sta...@googlegroups.com
Hi Aaron-

Thanks for bringing this to my attention- it looks like there's a hiccup in the source data for Maryland along that boundary that causes the point to appear in two districts when one is expected.  I actually haven't seen this happen before but I'll look and see if there's been an update to the Census files and if we can get a fix put in.  Otherwise we can probably build in a temporary workaround.

-James


--
You received this message because you are subscribed to the Google Groups "Open State Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fifty-state-pro...@googlegroups.com.
To post to this group, send email to fifty-sta...@googlegroups.com.
Visit this group at http://groups.google.com/group/fifty-state-project.
For more options, visit https://groups.google.com/groups/opt_out.

James Turk

unread,
Mar 5, 2014, 11:14:04 AM3/5/14
to fifty-sta...@googlegroups.com
I should mention, if you'd like to track this issue I'll be working on it here: https://sunlight.atlassian.net/browse/DATA-156

Aaron Kreider

unread,
Mar 5, 2014, 6:02:30 PM3/5/14
to fifty-sta...@googlegroups.com
Thanks James for looking into it!

ch...@centerdynamics.com

unread,
Dec 26, 2014, 8:55:05 AM12/26/14
to fifty-sta...@googlegroups.com
Greetings!
 
Google brought me right here, so if there is a better place to post this please let me know...

On 12/26/14, we saw a 500 on a lat/long pair in MD:

http://openstates.org/api/v1//legislators/geo/

Request:
    "Name": "lat",
    "Value": 39.20996,

    "Name": "long",
    "Value": -76.79732,
  

Response: 
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 86, in new_read
    obj = old_read(*args, **kwargs)
  File "/projects/openstates/virt/src/billy/billy/web/api/handlers.py", line 416, in read
    boundary_id)
ValueError: multiple districts with boundary_id: sldl/md-12




On Wednesday, March 5, 2014 11:01:42 AM UTC-5, James Turk wrote:
Hi Aaron-

Thanks for bringing this to my attention- it looks like there's a hiccup in the source data for Maryland along that boundary that causes the point to appear in two districts when one is expected.  I actually haven't seen this happen before but I'll look and see if there's been an update to the Census files and if we can get a fix put in.  Otherwise we can probably build in a temporary workaround.

-James
On Tue, Mar 4, 2014 at 3:20 PM, Aaron Kreider <aaronk...@gmail.com> wrote:
I'm testing out geocoding addresses in MD (with Google's geocoder) and then using Open States to find the legislator.  The first two worked.  The third address gave me an error:

NetworkError: 500 INTERNAL SERVER ERROR - http://openstates.org/api/v1//legislators/geo/?lat=39.5447164&long=-77.10399439999998&apikey=8f39955b55d7450d9f73932701df54e1&callback=jQuery20308688839607813031_1393963597624&_=1393963597631"

If I open the URL directly I get:

Piston/0.2.3rc1 (Django 1.4.5) crash report: Traceback (most recent call last): File "/projects/openstates/src/billy/billy/web/api/handlers.py", line 86, in new_read obj = old_read(*args, **kwargs) File "/projects/openstates/src/billy/billy/web/api/handlers.py", line 416, in read boundary_id) ValueError: multiple districts with boundary_id: sldl/md-5


You can see my code at www.energyjustice.net/action/action.php
If you enter a street address and zip code it will geocode it and show you the legislators - you can do that safely without triggering any emails.

--
You received this message because you are subscribed to the Google Groups "Open State Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fifty-state-project+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages