I'm running Open edX in K8s,
tutor, version 16.1.8
jupyter plugin version 16.0.1
Passport LTI is configured as per instructions.
After inserting a jupyter component in Studio, I got this error trace:
2024-06-19 22:36:23,489 ERROR 7 [cms.djangoapps.contentstore.views.preview] [user 1368] [ip 10.1.146.171] preview.py:91 - error processing ajax call
Traceback (most recent call last):
File "/openedx/venv/lib/python3.8/site-packages/lti_consumer/lti_1p1/oauth.py", line 53, in get_oauth_request_signature
_, headers, _ = client.sign(
File "/openedx/venv/lib/python3.8/site-packages/oauthlib/oauth1/rfc5849/__init__.py", line 314, in sign
('oauth_signature', self.get_oauth_signature(request)))
File "/openedx/venv/lib/python3.8/site-packages/oauthlib/oauth1/rfc5849/__init__.py", line 136, in get_oauth_signature
normalized_uri = signature.normalize_base_string_uri(uri,
File "/openedx/venv/lib/python3.8/site-packages/oauthlib/oauth1/rfc5849/signature.py", line 143, in normalize_base_string_uri
raise ValueError('uri must include a scheme and netloc')
ValueError: uri must include a scheme and netloc
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/openedx/edx-platform/./cms/djangoapps/contentstore/views/preview.py", line 75, in preview_handler
resp = instance.handle(handler, req, suffix)
File "/openedx/venv/lib/python3.8/site-packages/xblock/mixins.py", line 84, in handle
return self.runtime.handle(self, handler_name, request, suffix)
File "/openedx/edx-platform/xmodule/x_module.py", line 1033, in handle
return super().handle(block, handler_name, request, suffix=suffix)
File "/openedx/venv/lib/python3.8/site-packages/xblock/runtime.py", line 1081, in handle
results = handler(request, suffix)
File "/openedx/venv/lib/python3.8/site-packages/lti_consumer/lti_xblock.py", line 1221, in lti_launch_handler
lti_parameters = lti_consumer.generate_launch_request(self.resource_link_id)
File "/openedx/venv/lib/python3.8/site-packages/lti_consumer/lti_1p1/consumer.py", line 311, in generate_launch_request
oauth_signature = get_oauth_request_signature(
File "/openedx/venv/lib/python3.8/site-packages/lti_consumer/lti_1p1/oauth.py", line 60, in get_oauth_request_signature
raise Lti1p1Error("Failed to sign oauth request") from err
lti_consumer.lti_1p1.exceptions.Lti1p1Error: Failed to sign oauth request
2024-06-19 22:36:23,495 ERROR 7 [root] [user None] [ip None] signals.py:22 - Uncaught exception from None
Traceback (most recent call last):
File "/openedx/venv/lib/python3.8/site-packages/lti_consumer/lti_1p1/oauth.py", line 53, in get_oauth_request_signature
_, headers, _ = client.sign(
File "/openedx/venv/lib/python3.8/site-packages/oauthlib/oauth1/rfc5849/__init__.py", line 314, in sign
('oauth_signature', self.get_oauth_signature(request)))
File "/openedx/venv/lib/python3.8/site-packages/oauthlib/oauth1/rfc5849/__init__.py", line 136, in get_oauth_signature
normalized_uri = signature.normalize_base_string_uri(uri,
File "/openedx/venv/lib/python3.8/site-packages/oauthlib/oauth1/rfc5849/signature.py", line 143, in normalize_base_string_uri
raise ValueError('uri must include a scheme and netloc')
ValueError: uri must include a scheme and netloc
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/pyenv/versions/3.8.15/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/openedx/venv/lib/python3.8/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/openedx/venv/lib/python3.8/site-packages/django/views/decorators/clickjacking.py", line 50, in wrapped_view
resp = view_func(*args, **kwargs)
File "/openedx/edx-platform/./cms/djangoapps/contentstore/views/preview.py", line 75, in preview_handler
resp = instance.handle(handler, req, suffix)
File "/openedx/venv/lib/python3.8/site-packages/xblock/mixins.py", line 84, in handle
return self.runtime.handle(self, handler_name, request, suffix)
File "/openedx/edx-platform/xmodule/x_module.py", line 1033, in handle
return super().handle(block, handler_name, request, suffix=suffix)
File "/openedx/venv/lib/python3.8/site-packages/xblock/runtime.py", line 1081, in handle
results = handler(request, suffix)
File "/openedx/venv/lib/python3.8/site-packages/lti_consumer/lti_xblock.py", line 1221, in lti_launch_handler
lti_parameters = lti_consumer.generate_launch_request(self.resource_link_id)
File "/openedx/venv/lib/python3.8/site-packages/lti_consumer/lti_1p1/consumer.py", line 311, in generate_launch_request
oauth_signature = get_oauth_request_signature(
File "/openedx/venv/lib/python3.8/site-packages/lti_consumer/lti_1p1/oauth.py", line 60, in get_oauth_request_signature
raise Lti1p1Error("Failed to sign oauth request") from err
lti_consumer.lti_1p1.exceptions.Lti1p1Error: Failed to sign oauth request
2024-06-19 22:36:23,516 ERROR 7 [django.request] [user 1368] [ip 10.1.146.171] log.py:224 - Internal Server Error: /preview/xblock/block-v1:CyberWarrior+CT01+2022_T1+type@jupyter+block@6bfbb5d6e9c74d1db43beb2eef36d1ed/handler/lti_launch_handler
Traceback (most recent call last):
File "/openedx/venv/lib/python3.8/site-packages/lti_consumer/lti_1p1/oauth.py", line 53, in get_oauth_request_signature
_, headers, _ = client.sign(
File "/openedx/venv/lib/python3.8/site-packages/oauthlib/oauth1/rfc5849/__init__.py", line 314, in sign
('oauth_signature', self.get_oauth_signature(request)))
File "/openedx/venv/lib/python3.8/site-packages/oauthlib/oauth1/rfc5849/__init__.py", line 136, in get_oauth_signature
normalized_uri = signature.normalize_base_string_uri(uri,
File "/openedx/venv/lib/python3.8/site-packages/oauthlib/oauth1/rfc5849/signature.py", line 143, in normalize_base_string_uri
raise ValueError('uri must include a scheme and netloc')
ValueError: uri must include a scheme and netloc
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/pyenv/versions/3.8.15/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/openedx/venv/lib/python3.8/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/openedx/venv/lib/python3.8/site-packages/django/views/decorators/clickjacking.py", line 50, in wrapped_view
resp = view_func(*args, **kwargs)
File "/openedx/edx-platform/./cms/djangoapps/contentstore/views/preview.py", line 75, in preview_handler
resp = instance.handle(handler, req, suffix)
File "/openedx/venv/lib/python3.8/site-packages/xblock/mixins.py", line 84, in handle
return self.runtime.handle(self, handler_name, request, suffix)
File "/openedx/edx-platform/xmodule/x_module.py", line 1033, in handle
return super().handle(block, handler_name, request, suffix=suffix)
File "/openedx/venv/lib/python3.8/site-packages/xblock/runtime.py", line 1081, in handle
results = handler(request, suffix)
File "/openedx/venv/lib/python3.8/site-packages/lti_consumer/lti_xblock.py", line 1221, in lti_launch_handler
lti_parameters = lti_consumer.generate_launch_request(self.resource_link_id)
File "/openedx/venv/lib/python3.8/site-packages/lti_consumer/lti_1p1/consumer.py", line 311, in generate_launch_request
oauth_signature = get_oauth_request_signature(
File "/openedx/venv/lib/python3.8/site-packages/lti_consumer/lti_1p1/oauth.py", line 60, in get_oauth_request_signature
raise Lti1p1Error("Failed to sign oauth request") from err
lti_consumer.lti_1p1.exceptions.Lti1p1Error: Failed to sign oauth request
Hi,
I'm running Open edX in K8s, tutor, version 16.1.8 jupyter plugin version 16.0.1
Passport LTI is configured as per instructions.
After inserting a jupyter component in Studio, I got this error trace: