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

Error Thrown When Creating Account #1467

Closed
jasonrogena opened this issue Sep 3, 2018 · 0 comments · Fixed by #1478
Closed

Error Thrown When Creating Account #1467

jasonrogena opened this issue Sep 3, 2018 · 0 comments · Fixed by #1478

Comments

@jasonrogena
Copy link
Contributor

jasonrogena commented Sep 3, 2018

The following error is thrown when creating an account. Issue affects v1.14.6:

ERROR 2018-09-03 07:40:23,026 exception 31485 140183367087936 Internal Server Error: /api/v1/profiles
Traceback (most recent call last):
  File "/home/onadata/.virtualenvs/onadata/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/home/onadata/.virtualenvs/onadata/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/onadata/.virtualenvs/onadata/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/onadata/.virtualenvs/onadata/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/home/onadata/.virtualenvs/onadata/local/lib/python2.7/site-packages/rest_framework/viewsets.py", line 103, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/onadata/.virtualenvs/onadata/local/lib/python2.7/site-packages/rest_framework/views.py", line 483, in dispatch
    response = self.handle_exception(exc)
  File "/home/onadata/.virtualenvs/onadata/local/lib/python2.7/site-packages/rest_framework/views.py", line 443, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/home/onadata/.virtualenvs/onadata/local/lib/python2.7/site-packages/rest_framework/views.py", line 480, in dispatch
    response = handler(request, *args, **kwargs)
  File "./onadata/apps/api/viewsets/user_profile_viewset.py", line 151, in create
    data['metadata'] = {'last_password_edit': timezone.now().isoformat()}
  File "/home/onadata/.virtualenvs/onadata/local/lib/python2.7/site-packages/django/http/request.py", line 434, in __setitem__
    self._assert_mutable()
  File "/home/onadata/.virtualenvs/onadata/local/lib/python2.7/site-packages/django/http/request.py", line 431, in _assert_mutable
    raise AttributeError("This QueryDict instance is immutable")
AttributeError: This QueryDict instance is immutable

Aha! Link: https://ona.aha.io/features/PROD-322

ukanga added a commit that referenced this issue Sep 3, 2018
This reverts commit aced16c, reversing
changes made to a5b4303.

This changes result in the exception posted on issue
#1467. There is need to rethink
how the functionality should be implemented.
ukanga added a commit that referenced this issue Sep 3, 2018
This reverts commit aced16c, reversing
changes made to a5b4303.

This changes result in the exception posted on issue
#1467. There is need to rethink
how the functionality should be implemented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants