I am facing an issue while creating an account. the screen gets stuck and gets nowhere.
Here are the logs.
lms_1 | return super().dispatch(request, *args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/rest_framew ork/views.py", line 509, in dispatch
lms_1 | response = self.handle_exception(exc)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/rest_framew ork/views.py", line 469, in handle_exception
lms_1 | self.raise_uncaught_exception(exc)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/rest_framew ork/views.py", line 480, in raise_uncaught_exception
lms_1 | raise exc
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/rest_framew ork/views.py", line 506, in dispatch
lms_1 | response = handler(request, *args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/util s/decorators.py", line 45, in _wrapper
lms_1 | return bound_method(*args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/view s/decorators/csrf.py", line 54, in wrapped_view
lms_1 | return view_func(*args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/util s/decorators.py", line 45, in _wrapper
lms_1 | return bound_method(*args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/ratelimit/d ecorators.py", line 24, in _wrapped
lms_1 | return fn(request, *args, **kw)
lms_1 | File "./openedx/core/djangoapps/user_authn/views/register.p y", line 529, in post
lms_1 | response, user = self._create_account(request, data)
lms_1 | File "./openedx/core/djangoapps/user_authn/views/register.p y", line 572, in _create_account
lms_1 | user = create_account_with_params(request, data)
lms_1 | File "./openedx/core/djangoapps/user_authn/views/register.p y", line 236, in create_account_with_params
lms_1 | compose_and_send_activation_email(user, profile, registra tion)
lms_1 | File "/openedx/edx-platform/common/djangoapps/student/views /management.py", line 214, in compose_and_send_activation_email
lms_1 | send_activation_email.delay(str(msg))
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_ace/ser ialization.py", line 29, in __str__
lms_1 | return json.dumps(self, cls=MessageEncoder)
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/__init__ .py", line 234, in dumps
lms_1 | return cls(
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder. py", line 199, in encode
lms_1 | chunks = self.iterencode(o, _one_shot=True)
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder. py", line 257, in iterencode
lms_1 | return _iterencode(o, 0)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_ace/ser ialization.py", line 119, in default
lms_1 | return super().default(o) # pragma: no cover
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder. py", line 179, in default
lms_1 | raise TypeError(f'Object of type {o.__class__.__name__} '
lms_1 | TypeError: Object of type LazyStaticAbsoluteUrl is not JSON s erializable
lms_1 | 2021-09-28 11:53:31,607 ERROR 7 [django.request] [user 7] [ip 117.20.18.127] log.py:222 - Internal Server Error: /api/user/v2/account/registr ation/
lms_1 | Traceback (most recent call last):
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core /handlers/exception.py", line 34, in inner
lms_1 | response = get_response(request)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core /handlers/base.py", line 115, in _get_response
lms_1 | response = self.process_exception_by_middleware(e, reques t)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core /handlers/base.py", line 113, in _get_response
lms_1 | response = wrapped_callback(request, *callback_args, **ca llback_kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/view s/decorators/csrf.py", line 54, in wrapped_view
lms_1 | return view_func(*args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/view s/generic/base.py", line 71, in view
lms_1 | return self.dispatch(request, *args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/util s/decorators.py", line 45, in _wrapper
lms_1 | return bound_method(*args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/util s/decorators.py", line 45, in _wrapper
lms_1 | return bound_method(*args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/view s/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
lms_1 | return view(request, *args, **kwargs)
lms_1 | File "./openedx/core/djangoapps/user_authn/views/register.p y", line 485, in dispatch
lms_1 | return super().dispatch(request, *args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/rest_framew ork/views.py", line 509, in dispatch
lms_1 | response = self.handle_exception(exc)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/rest_framew ork/views.py", line 469, in handle_exception
lms_1 | self.raise_uncaught_exception(exc)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/rest_framew ork/views.py", line 480, in raise_uncaught_exception
lms_1 | raise exc
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/rest_framew ork/views.py", line 506, in dispatch
lms_1 | response = handler(request, *args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/util s/decorators.py", line 45, in _wrapper
lms_1 | return bound_method(*args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/view s/decorators/csrf.py", line 54, in wrapped_view
lms_1 | return view_func(*args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/util s/decorators.py", line 45, in _wrapper
lms_1 | return bound_method(*args, **kwargs)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/ratelimit/d ecorators.py", line 24, in _wrapped
lms_1 | return fn(request, *args, **kw)
lms_1 | File "./openedx/core/djangoapps/user_authn/views/register.p y", line 529, in post
lms_1 | response, user = self._create_account(request, data)
lms_1 | File "./openedx/core/djangoapps/user_authn/views/register.p y", line 572, in _create_account
lms_1 | user = create_account_with_params(request, data)
lms_1 | File "./openedx/core/djangoapps/user_authn/views/register.p y", line 236, in create_account_with_params
lms_1 | compose_and_send_activation_email(user, profile, registra tion)
lms_1 | File "/openedx/edx-platform/common/djangoapps/student/views /management.py", line 214, in compose_and_send_activation_email
lms_1 | send_activation_email.delay(str(msg))
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_ace/ser ialization.py", line 29, in __str__
lms_1 | return json.dumps(self, cls=MessageEncoder)
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/__init__ .py", line 234, in dumps
lms_1 | return cls(
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder. py", line 199, in encode
lms_1 | chunks = self.iterencode(o, _one_shot=True)
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder. py", line 257, in iterencode
lms_1 | return _iterencode(o, 0)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_ace/ser ialization.py", line 119, in default
lms_1 | return super().default(o) # pragma: no cover
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder. py", line 179, in default
lms_1 | raise TypeError(f'Object of type {o.__class__.__name__} '
lms_1 | TypeError: Object of type LazyStaticAbsoluteUrl is not JSON s erializable
lms_1 | [pid: 7|app: 0|req: 10/21] 172.18.0.12 () {54 vars in 1329 by tes} [Tue Sep 28 11:53:31 2021] POST /api/user/v2/account/registration/ => gener ated 9925 bytes in 543 msecs (HTTP/1.0 500) 8 headers in 547 bytes (1 switches o n core 0)
nginx_1 | 172.18.0.5 - - [28/Sep/2021:11:53:31 +0000] http://lms.analyt ics.com.pk "POST /api/user/v2/account/registration/ HTTP/1.1" 500 9925 "http://l ms.analytics.com.pk/register?next=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64 ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 Edg/9 4.0.992.31" "117.20.18.127"
redis_1 | 1:M 28 Sep 2021 11:54:37.058 * 10 changes in 300 seconds. Saving...
redis_1 | 1:M 28 Sep 2021 11:54:37.058 * Background saving started by pid 21
redis_1 | 21:C 28 Sep 2021 11:54:37.064 * DB saved on disk
redis_1 | 21:C 28 Sep 2021 11:54:37.065 * RDB: 0 MB of memory used by copy-on-write
redis_1 | 1:M 28 Sep 2021 11:54:37.159 * Background saving terminated with success