Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin lti-consumer-xblock #36095

Open
mumarkhan999 opened this issue Jan 10, 2025 · 0 comments
Open

Pin lti-consumer-xblock #36095

mumarkhan999 opened this issue Jan 10, 2025 · 0 comments

Comments

@mumarkhan999
Copy link
Member

mumarkhan999 commented Jan 10, 2025

This PR might be the reason of the following errors

2025-01-10T07:01:22.944655+00:00 app[web.1]: [2025-01-10 07:01:22 +0000] [9] [ERROR] Error handling request /launch/
2025-01-10T07:01:22.944689+00:00 app[web.1]: Traceback (most recent call last):
2025-01-10T07:01:22.944690+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/gthread.py", line 271, in handle
2025-01-10T07:01:22.944691+00:00 app[web.1]: keepalive = self.handle_request(req, conn)
2025-01-10T07:01:22.944692+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/gthread.py", line 323, in handle_request
2025-01-10T07:01:22.944693+00:00 app[web.1]: respiter = self.wsgi(environ, resp.start_response)
2025-01-10T07:01:22.944694+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/app.py", line 1498, in __call__
2025-01-10T07:01:22.944694+00:00 app[web.1]: return self.wsgi_app(environ, start_response)
2025-01-10T07:01:22.944694+00:00 app[web.1]: File "/app/app.py", line 24, in __call__
2025-01-10T07:01:22.944695+00:00 app[web.1]: return self.app(environ, start_response)
2025-01-10T07:01:22.944695+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/app.py", line 1476, in wsgi_app
2025-01-10T07:01:22.944696+00:00 app[web.1]: response = self.handle_exception(e)
2025-01-10T07:01:22.944696+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/app.py", line 1473, in wsgi_app
2025-01-10T07:01:22.944696+00:00 app[web.1]: response = self.full_dispatch_request()
2025-01-10T07:01:22.944697+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/app.py", line 882, in full_dispatch_request
2025-01-10T07:01:22.944697+00:00 app[web.1]: rv = self.handle_user_exception(e)
2025-01-10T07:01:22.944697+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/app.py", line 880, in full_dispatch_request
2025-01-10T07:01:22.944697+00:00 app[web.1]: rv = self.dispatch_request()
2025-01-10T07:01:22.944698+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/app.py", line 865, in dispatch_request
2025-01-10T07:01:22.944698+00:00 app[web.1]: return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
2025-01-10T07:01:22.944698+00:00 app[web.1]: File "/app/app.py", line 136, in launch
2025-01-10T07:01:22.944699+00:00 app[web.1]: message_launch_data = message_launch.get_launch_data()
2025-01-10T07:01:22.944699+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pylti1p3/message_launch.py", line 529, in get_launch_data
2025-01-10T07:01:22.944699+00:00 app[web.1]: return self._get_jwt_body()
2025-01-10T07:01:22.944700+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pylti1p3/message_launch.py", line 330, in _get_jwt_body
2025-01-10T07:01:22.944700+00:00 app[web.1]: self.validate()
2025-01-10T07:01:22.944700+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pylti1p3/message_launch.py", line 315, in validate
2025-01-10T07:01:22.944700+00:00 app[web.1]: self.validate_state()
2025-01-10T07:01:22.944701+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pylti1p3/message_launch.py", line 712, in validate_jwt_signature
2025-01-10T07:01:22.944701+00:00 app[web.1]: public_key, key_alg = self.get_public_key()
2025-01-10T07:01:22.944701+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pylti1p3/message_launch.py", line 606, in get_public_key
2025-01-10T07:01:22.944701+00:00 app[web.1]: raise LtiException("JWT KID not found")
2025-01-10T07:01:22.944702+00:00 app[web.1]: pylti1p3.exception.LtiException: JWT KID not found
2025-01-10T07:01:22.944869+00:00 app[web.1]: 10.1.85.7 - - [10/Jan/2025:07:01:22 +0000] "POST /launch/ HTTP/1.1" 500 0 "-" "-"
2025-01-10T07:01:22.945459+00:00 heroku[router]: at=info method=POST path="/launch/" host=senegroove-5b7c06f81778.herokuapp.com request_id=e58df1e9-5d39-400f-ba8d-dee7d38b70e6 fwd="103.82.121.169" dyno=web.1 connect=0ms service=242ms status=500 bytes=244 protocol=https
2025-01-10T07:02:02.009196+00:00 app[web.1]: 10.1.46.230 - - [10/Jan/2025:07:02:02 +0000] "GET /jwks/ HTTP/1.1" 200 870 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 OPR/114.0.0.0"
2025-01-10T07:02:02.009475+00:00 heroku[router]: at=info method=GET path="/jwks/" host=senegroove-5b7c06f81778.herokuapp.com request_id=896922ba-cb2e-4575-ba7d-91de5b351124 fwd="103.82.121.169" dyno=web.1 connect=0ms service=80ms status=200 bytes=1016 protocol=https

So adding pin for a while until it gets resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant