Created
February 12, 2020 18:37
-
-
Save sambapete/09139d73deeddd44918d0654b72d9ed7 to your computer and use it in GitHub Desktop.
LTI, juniper and use preference ????
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feb 12 18:25:07 ip-10-0-0-10 [service_variant=lms][py.warnings][env:sandbox] WARNING [ip-10-0-0-10 15319] [user None] [backends.py:37] - /edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/contrib/auth/__init__.py:116: UserWarning: No request passed to the backend, unable to rate-limit. Username was 'EzhsCbCSn3vBa3y7UhGRSzC3wfr2c4' | |
return backend.authenticate(*args, **credentials) | |
Feb 12 18:25:07 ip-10-0-0-10 [service_variant=lms][audit][env:sandbox] INFO [ip-10-0-0-10 15319] [user 17] [models.py:2387] - Login success - user.id: 17 | |
Feb 12 18:25:07 ip-10-0-0-10 [service_variant=lms][py.warnings][env:sandbox] WARNING [ip-10-0-0-10 15319] [user 17] [__init__.py:1565] - /edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/pkg_resources/__init__.py:1146: DeprecationWarning: Use of .. or absolute path in a resource path is not allowed and will raise exceptions in a future release. | |
self, resource_name | |
Feb 12 18:25:07 ip-10-0-0-10 [service_variant=lms][openedx.core.djangoapps.user_api.helpers][env:sandbox] WARNING [ip-10-0-0-10 15319] [user 17] [helpers.py:68] - A handled error occurred when calling 'set_user_preference' with arguments '(<User: EzhsCbCSn3vBa3y7UhGRSzC3wfr2c4>, 'pref-lang', 'en')' and keyword arguments '{}': PreferenceValidationError({'pref-lang': {'user_message': "Value 'en' is not valid for user preference 'pref-lang'.", 'developer_message': 'Value \'en\' not valid for preference \'pref-lang\': {\'user\': [\'Invalid pk "17" - object does not exist.\']}'}},) | |
Feb 12 18:25:07 ip-10-0-0-10 [service_variant=lms][root][env:sandbox] ERROR [ip-10-0-0-10 15319] [user 17] [signals.py:23] - Uncaught exception from <class 'django.core.handlers.wsgi.WSGIHandler'> | |
Traceback (most recent call last): | |
File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/core/handlers/base.py", line 131, in get_response | |
response = middleware_method(request, response) | |
File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/lang_pref/middleware.py", line 63, in process_response | |
set_user_preference(current_user, LANGUAGE_KEY, anonymous_cookie_lang) | |
File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/user_api/helpers.py", line 53, in _wrapped | |
return func(*args, **kwargs) | |
File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/user_api/preferences/api.py", line 186, in set_user_preference | |
validate_user_preference_serializer(serializer, preference_key, preference_value) | |
File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/user_api/preferences/api.py", line 403, in validate_user_preference_serializer | |
"user_message": user_message, | |
openedx.core.djangoapps.user_api.errors.PreferenceValidationError: {'pref-lang': {'user_message': "Value 'en' is not valid for user preference 'pref-lang'.", 'developer_message': 'Value \'en\' not valid for preference \'pref-lang\': {\'user\': [\'Invalid pk "17" - object does not exist.\']}'}} | |
Feb 12 18:25:07 ip-10-0-0-10 [service_variant=lms][django.request][env:sandbox] ERROR [ip-10-0-0-10 15319] [user 17] [exception.py:135] - Internal Server Error: /lti_provider/courses/course-v1:UMontreal+TEST_LTI_01+E2016/block-v1:UMontreal+TEST_LTI_01+E2016+type@sequential+block@1c40b4c92c58421da885bea7a63992e1 | |
Traceback (most recent call last): | |
File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/core/handlers/base.py", line 131, in get_response | |
response = middleware_method(request, response) | |
File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/lang_pref/middleware.py", line 63, in process_response | |
set_user_preference(current_user, LANGUAGE_KEY, anonymous_cookie_lang) | |
File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/user_api/helpers.py", line 53, in _wrapped | |
return func(*args, **kwargs) | |
File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/user_api/preferences/api.py", line 186, in set_user_preference | |
validate_user_preference_serializer(serializer, preference_key, preference_value) | |
File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/user_api/preferences/api.py", line 403, in validate_user_preference_serializer | |
"user_message": user_message, | |
openedx.core.djangoapps.user_api.errors.PreferenceValidationError: {'pref-lang': {'user_message': "Value 'en' is not valid for user preference 'pref-lang'.", 'developer_message': 'Value \'en\' not valid for preference \'pref-lang\': {\'user\': [\'Invalid pk "17" - object does not exist.\']}'}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment