Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 error when using /locate #408

Open
longhotsummer opened this issue Jun 7, 2018 · 0 comments
Open

500 error when using /locate #408

longhotsummer opened this issue Jun 7, 2018 · 0 comments

Comments

@longhotsummer
Copy link
Contributor

2018-06-07 15:38:52,485 ERROR exception 177 139886296650712 Internal Server Error: /locate/
Traceback (most recent call last):
 File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
   response = get_response(request)
 File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
   response = self.process_exception_by_middleware(e, request)
 File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
   response = wrapped_callback(request, *callback_args, **callback_kwargs)
 File "/app/.heroku/python/lib/python3.6/contextlib.py", line 52, in inner
   return func(*args, **kwds)
 File "/app/.heroku/python/lib/python3.6/site-packages/newrelic/hooks/framework_django.py", line 527, in wrapper
   return wrapped(*args, **kwargs)
 File "/app/.heroku/python/lib/python3.6/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
   response = view_func(request, *args, **kwargs)
 File "/app/.heroku/python/lib/python3.6/site-packages/django/views/generic/base.py", line 68, in view
   return self.dispatch(request, *args, **kwargs)
 File "/app/.heroku/python/lib/python3.6/site-packages/newrelic/hooks/framework_django.py", line 914, in wrapper
   return wrapped(*args, **kwargs)
 File "/app/.heroku/python/lib/python3.6/site-packages/django/views/generic/base.py", line 88, in dispatch
   return handler(request, *args, **kwargs)
 File "/app/scorecard/views.py", line 22, in get
   places = Geography.get_locations_from_coords(latitude=self.lat, longitude=self.lon)
 File "/app/scorecard/models.py", line 136, in get_locations_from_coords
   for feature in resp.json().itervalues():
AttributeError: 'dict' object has no attribute 'itervalues'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant