Error updating org profiles
Closed this issue · 0 comments
FrankApiyo commented
ERROR 2024-08-23 13:19:13,968 log 12411 281472991800480 Internal Server Error: /api/v1/orgs/<org-usernmae>.json
Traceback (most recent call last):
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/sentry_sdk/integrations/django/views.py", line 84, in sentry_wrapped_callback
return callback(request, *args, **kwargs)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view
return view_func(*args, **kwargs)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/viewsets.py", line 124, in view
return self.dispatch(request, *args, **kwargs)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/mixins.py", line 82, in partial_update return self.update(request, *args, **kwargs)
File "/srv/onadata/./onadata/apps/api/viewsets/organization_profile_viewset.py", line 94, in update response = super().update(request, *args, **kwargs)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/mixins.py", line 68, in update self.perform_update(serializer) File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/mixins.py", line 78, in perform_update
serializer.save() File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/serializers.py", line 203, in save self.instance = self.update(self.instance, validated_data)
File "/srv/onadata/./onadata/libs/serializers/organization_serializer.py", line 76, in update return super().update(instance, validated_data) File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/serializers.py", line 1031, in update
setattr(instance, attr, value)
AttributeError: can't set attribute 'email'ERROR 2024-08-23 13:19:13,968 log 12411 281472991800480 Internal Server Error: /api/v1/orgs/angels_reach.json
Traceback (most recent call last):
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/sentry_sdk/integrations/django/views.py", line 84, in sentry_wrapped_callback
return callback(request, *args, **kwargs)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view
return view_func(*args, **kwargs)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/viewsets.py", line 124, in view
return self.dispatch(request, *args, **kwargs)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/mixins.py", line 82, in partial_update return self.update(request, *args, **kwargs)
File "/srv/onadata/./onadata/apps/api/viewsets/organization_profile_viewset.py", line 94, in update response = super().update(request, *args, **kwargs)
File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/mixins.py", line 68, in update self.perform_update(serializer) File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/mixins.py", line 78, in perform_update
serializer.save() File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/serializers.py", line 203, in save self.instance = self.update(self.instance, validated_data)
File "/srv/onadata/./onadata/libs/serializers/organization_serializer.py", line 76, in update return super().update(instance, validated_data) File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/site-packages/rest_framework/serializers.py", line 1031, in update
setattr(instance, attr, value)
AttributeError: can't set attribute 'email'