pylti1.3 icon indicating copy to clipboard operation
pylti1.3 copied to clipboard

Sakai LTI 1.3 Launch Getting This Error "Missing session-id cookie issue"

Open anmola31 opened this issue 1 year ago • 4 comments

One of our clients is encountering the following error when launching the LTI 1.3 Tool. After attempting to launch the tool multiple times, it eventually loads. Instructors are experiencing this issue. Any assistance in resolving this matter would be greatly appreciated

File "/srv/proctortrack/venv/lib/python3.6/site-packages/pylti1p3/message_launch.py", line 728, in set_launch_data_storage raise LtiException("Missing %s cookie" % session_cookie_name) , pylti1p3.exception.LtiException: Missing session-id cookie

anmola31 avatar Oct 09 '23 15:10 anmola31

I have also seen "Missing session-id cookie" exceptions, but on launches from Canvas. It's not consistent and I haven't been able to reproduce it.

hmoffatt avatar Oct 09 '23 22:10 hmoffatt

Was it when using browser in incognito mode or blocking third-party cookies? What browser did they used?

You can use Sentry for monitoring errors and you will see who raise it, what browser used, stacktrace of exception, how many it raised, how many users raised this exception and etc.

NaurizAitbai avatar Oct 25 '23 12:10 NaurizAitbai

NO, they are not using incognito mode, they are using chrome browser and Multiple users are facing this issue.

anmola31 avatar Nov 03 '23 16:11 anmola31

Just chiming in here, we are experiencing the same with Chrome browser (not incognito) as well and v2.0.0 of pylti1.3. From looking at the requests, it seems to be that the lti1p3-session-id cookie is not being passed through to the Canvas LTI authorisation URI https://xx.instructure.com/api/lti/authorize_redirect?

Cookies are marked as SameSite=None and Secure

dannydotliu avatar Feb 19 '24 01:02 dannydotliu