Pip package problem

caddy_1 | {“level”:“error”,“ts”:1652960363.1520321,“logger”:“http.log.access.log0”,“msg”:“handled request”,“request”:{“remote_addr”:“202.163.113.216:31192”,“proto”:“HTTP/2.0”,“method”:“POST”,“host”:“edx.curriki.org”,“uri”:"/api/lti_consumer/v1/lti/8/lti-dl/response",“tls”:{“resumed”:true,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“edx.curriki.org”}},“user_id”:"",“duration”:0.322176223,“size”:9896,“status”:500}

Sorry, I can’t jump on a call, I have meetings coming up.

Can you check the LMS/CMS logs to see if there is any information there?

Bear in mind you might be using a version of lti_consumer_xblock that is not compatible with the Maple release, especially if you moved to a major release (from 3.x to 4.x).

Thanks man, let me try different versions then

@BbrSofiane I have tried with different versions but still same 500 error, cant think of any other option to try, i am really stuck here
Logs:
2022-05-19 14:10:55,256 INFO 24 [openedx.core.djangoapps.cors_csrf.helpers] [user 5] [ip 110.36.227.66] helpers.py:64 - Origin ‘https://tst-tsugi.curriki.org’ was not in CORS_ORIGIN_WHITELIST; full referer was ‘https://tst-tsugi.curriki.org/’ and requested host was ‘edx.curriki.org’; CORS_ORIGIN_ALLOW_ALL=False
2022-05-19 14:10:55,310 ERROR 24 [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/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.12/lib/python3.8/contextlib.py”, line 75, in inner
return func(*args, **kwds)
File “/openedx/venv/lib/python3.8/site-packages/django/views/decorators/csrf.py”, line 54, in wrapped_view
return view_func(*args, **kwargs)
File “/openedx/venv/lib/python3.8/site-packages/django/views/decorators/clickjacking.py”, line 33, in wrapped_view
resp = view_func(*args, **kwargs)
File “/openedx/venv/lib/python3.8/site-packages/django/views/decorators/http.py”, line 40, in inner
return func(request, *args, **kwargs)
File “/openedx/venv/lib/python3.8/site-packages/lti_consumer/plugin/views.py”, line 191, in deep_linking_response_endpoint
lti_consumer = lti_config.get_lti_consumer()
File “/openedx/venv/lib/python3.8/site-packages/lti_consumer/models.py”, line 329, in get_lti_consumer
return self._get_lti_1p3_consumer()
File “/openedx/venv/lib/python3.8/site-packages/lti_consumer/models.py”, line 258, in _get_lti_1p3_consumer
lti_oidc_url=self.block.lti_1p3_oidc_url,
File “/openedx/venv/lib/python3.8/site-packages/lti_consumer/models.py”, line 166, in block
block = self._block = compat.load_block_as_anonymous_user(self.location)
File “/openedx/venv/lib/python3.8/site-packages/lti_consumer/plugin/compat.py”, line 57, in load_block_as_anonymous_user
get_module_for_descriptor_internal(
TypeError: get_module_for_descriptor_internal() missing 1 required positional argument: ‘xqueue_callback_url_prefix’
2022-05-19 14:10:55,386 ERROR 24 [django.request] [user 5] [ip 110.36.227.66] log.py:224 - Internal Server Error: /api/lti_consumer/v1/lti/8/lti-dl/response
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.12/lib/python3.8/contextlib.py”, line 75, in inner
return func(*args, **kwds)
File “/openedx/venv/lib/python3.8/site-packages/django/views/decorators/csrf.py”, line 54, in wrapped_view
return view_func(*args, **kwargs)
File “/openedx/venv/lib/python3.8/site-packages/django/views/decorators/clickjacking.py”, line 33, in wrapped_view
resp = view_func(*args, **kwargs)
File “/openedx/venv/lib/python3.8/site-packages/django/views/decorators/http.py”, line 40, in inner
return func(request, *args, **kwargs)
File “/openedx/venv/lib/python3.8/site-packages/lti_consumer/plugin/views.py”, line 191, in deep_linking_response_endpoint
lti_consumer = lti_config.get_lti_consumer()
File “/openedx/venv/lib/python3.8/site-packages/lti_consumer/models.py”, line 329, in get_lti_consumer
return self._get_lti_1p3_consumer()
File “/openedx/venv/lib/python3.8/site-packages/lti_consumer/models.py”, line 258, in _get_lti_1p3_consumer
lti_oidc_url=self.block.lti_1p3_oidc_url,
File “/openedx/venv/lib/python3.8/site-packages/lti_consumer/models.py”, line 166, in block
block = self._block = compat.load_block_as_anonymous_user(self.location)
File “/openedx/venv/lib/python3.8/site-packages/lti_consumer/plugin/compat.py”, line 57, in load_block_as_anonymous_user
get_module_for_descriptor_internal(
TypeError: get_module_for_descriptor_internal() missing 1 required positional argument: ‘xqueue_callback_url_prefix’
[pid: 24|app: 0|req: 24/64] 172.19.0.2 () {64 vars in 2690 bytes} [Thu May 19 14:10:55 2022] POST /api/lti_consumer/v1/lti/8/lti-dl/response => generated 9896 bytes in 432 msecs (HTTP/1.1 500) 8 headers in 533 bytes (1 switches on core 0)
[pid: 7|app: -1|req: -1/65] 172.19.0.2 () {56 vars in 2467 bytes} [Thu May 19 14:10:55 2022] GET /static/js/i18n/en/djangojs.705ead69114e.js => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/66] 172.19.0.2 () {56 vars in 2475 bytes} [Thu May 19 14:10:55 2022] GET /static/css/lms-main-v1.400dad764410.css => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/67] 172.19.0.2 () {56 vars in 2465 bytes} [Thu May 19 14:10:55 2022] GET /static/js/lms-main_vendor.3c3c9a2604d6.js => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/68] 172.19.0.2 () {56 vars in 2485 bytes} [Thu May 19 14:10:55 2022] GET /static/css/lms-style-vendor.68e48093f5dd.css => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/69] 172.19.0.2 () {56 vars in 2471 bytes} [Thu May 19 14:10:55 2022] GET /static/lms/js/require-config.38226099c6ad.js => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/70] 172.19.0.2 () {56 vars in 2501 bytes} [Thu May 19 14:10:55 2022] GET /static/bundles/commons.2094fc04a0d909f5ffd6.cd99866c586e.js => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/71] 172.19.0.2 () {56 vars in 2465 bytes} [Thu May 19 14:10:55 2022] GET /static/js/lms-application.98d9a8549a03.js => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 24|app: -1|req: -1/72] 172.19.0.2 () {56 vars in 2465 bytes} [Thu May 19 14:10:55 2022] GET /static/js/ie11_find_array.bd1c6dc7a133.js => generated 0 bytes in 4 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 24|app: -1|req: -1/74] 172.19.0.2 () {56 vars in 2469 bytes} [Thu May 19 14:10:56 2022] GET /static/js/vendor/noreferrer.aa62a3e70ffa.js => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/73] 172.19.0.2 () {56 vars in 2467 bytes} [Thu May 19 14:10:56 2022] GET /static/js/utils/navigation.08930e16ab3d.js => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/75] 172.19.0.2 () {56 vars in 2513 bytes} [Thu May 19 14:10:56 2022] GET /static/images/logo.b6c374d66d57.png => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 24|app: -1|req: -1/76] 172.19.0.2 () {56 vars in 2543 bytes} [Thu May 19 14:10:56 2022] GET /static/images/profiles/default_50.3455a6581573.png => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/77] 172.19.0.2 () {56 vars in 2460 bytes} [Thu May 19 14:10:56 2022] GET /static/js/header/header.309a1243e175.js => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 24|app: -1|req: -1/79] 172.19.0.2 () {58 vars in 2549 bytes} [Thu May 19 14:10:56 2022] GET /static/fonts/vendor/fontawesome-webfont.e6cf7c6ec7c2.woff2?v=4.6.3 => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/79] 172.19.0.2 () {56 vars in 2480 bytes} [Thu May 19 14:10:56 2022] GET /static/js/src/jquery_extend_patch.54dddef28d15.js => generated 0 bytes in 0 msecs (HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)

This seems to be where the problem occurs

Which is here in the code. I’ve never used the LTI Xblock before and I am not too familiar with how LTI works.

If I were I would look for changes in the get_module_for_descriptor_internal. And also look at the places where that function is called.

I can’t really spend time on it but hope this helps. Good luck for your demo :sweat_smile:

Thank you @BbrSofiane