Closed id2359 closed 5 years ago
Internal Server Error: /rdrf/api/v1/countries/XX/states/ TypeError at /api/v1/countries/XX/states/ 'NoneType' object is not iterable Request Method: GET Request URL: https://angelmanregistry.info/rdrf/api/v1/countries/XX/states/ Django Version: 2.1.7 Python Executable: /env/bin/uwsgi Python Version: 3.7.4 Python Path: ['.', '/app', '/usr/local/lib/python37.zip', '/usr/local/lib/python3.7', '/usr/local/lib/python3.7/lib-dynload', '/env/lib/python3.7/site-packages', '/env/src/django-rdrf/rdrf', '/app/angelman'] Server time: Tue, 29 Oct 2019 13:18:06 +0800 Traceback: File "/env/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner 34. response = get_response(request) File "/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response 126. response = self.process_exception_by_middleware(e, request) File "/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response 124. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/env/lib/python3.7/site-packages/django/views/decorators/csrf.py" in wrapped_view 54. return view_func(*args, **kwargs) File "/env/lib/python3.7/site-packages/django/views/generic/base.py" in view 68. return self.dispatch(request, *args, **kwargs) File "/env/lib/python3.7/site-packages/rest_framework/views.py" in dispatch 495. response = self.handle_exception(exc) File "/env/lib/python3.7/site-packages/rest_framework/views.py" in handle_exception 455. self.raise_uncaught_exception(exc) File "/env/lib/python3.7/site-packages/rest_framework/views.py" in dispatch 492. response = handler(request, *args, **kwargs) File "/env/src/django-rdrf/rdrf/rdrf/services/rest/views/api_views.py" in get 174. country_code=country_code), key=lambda x: x.name) Exception Type: TypeError at /api/v1/countries/XX/states/ Exception Value: 'NoneType' object is not iterable Request information: USER: AnonymousUser GET: No GET data POST: No POST data FILES: No FILES data COOKIES: No cookie data META: CONTENT_LENGTH = '' CONTENT_TYPE = '' DOCUMENT_ROOT = '/data/www/angelmanregistry.info' HTTPS = 'on' HTTP_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,text/html,application/xhtml+xml,application/signed-exchange;v=b3,application/xml;q=0.9,*/*;q=0.8' HTTP_ACCEPT_ENCODING = 'gzip,deflate,br' HTTP_AMP_CACHE_TRANSFORM = 'google;v="1..2"' HTTP_CONNECTION = 'keep-alive' HTTP_FROM = 'googlebot(at)googlebot.com' HTTP_HOST = 'angelmanregistry.info' HTTP_SCRIPT_NAME = '/rdrf' HTTP_USER_AGENT = 'Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' PATH_INFO = '/api/v1/countries/XX/states/' QUERY_STRING = '' REMOTE_ADDR = '66.249.75.17' REMOTE_PORT = '43431' REQUEST_METHOD = 'GET' REQUEST_SCHEME = 'https' REQUEST_URI = '/rdrf/api/v1/countries/XX/states/' SCRIPT_NAME = '/rdrf' SERVER_NAME = 'angelmanregistry.info' SERVER_PORT = '443' SERVER_PROTOCOL = 'HTTP/1.1'
will be fixed in https://github.com/muccg/rdrf/issues/1062