WeBWorK Main Forum

LTI access woes 01

LTI access woes 01

by Zak Zarychta -
Number of replies: 3

Hi there,
I have a teaching assistant who has been able to access homeworks directly linked from the LMS (BlackBoard). They have not had problems previously. In trying to access WeBWorK today, the  error below in the error log when they try to access from the LMS .

Any suggestions?

[Thu Nov 30 11:33:34.566817 2023] [perl:error] [pid 61260] [client 160.5.12.51:50502] [ad4effd1-30c7-5dfe-86bd-bb698523689e::4bc9bef7-8f74-11ee-8d40-f02aceb4137c] [/webwork2/FYO-00211-2023-SEM1-A/Quiz_2/] {"HTTP Headers":{"X-Forwarded-For":"172.224.226.80","Content-Length":"2841","Sec-Fetch-Site":"same-site","Origin":"https://kle.keele.ac.uk","Content-Type":"application/x-www-form-urlencoded","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 17_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.1 Mobile/15E148 Safari/604.1","Sec-Fetch-Dest":"document","X-Forwarded-Port":"443","Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","X-Forwarded-Proto":"https","Referer":"https://kle.keele.ac.uk/","Sec-Fetch-Mode":"navigate","Accept-Encoding":"gzip, deflate, br","Accept-Language":"en-GB,en;q=0.9","Cookie":"_ga=GA1.3.605357761.1700691057; _ga_QVSWXSGFWJ=GS1.3.1701344007.1.0.1701344007.0.0.0; _gat=1; _gid=GA1.3.1568099111.1701344007; apt.sid=AP-PQQY5YJEHTTA-2-1701343998487-62815299; apt.uid=AP-PQQY5YJEHTTA-2-1701343998487-88361215.0.2.ca66ff23-e56b-4a15-bda5-6c4f5d00f979; _ga_TTX52MNYRN=GS1.1.1701343825.2.0.1701343826.0.0.0; _fbp=fb.2.1700691058959.573154758; _scid_r=54de8d47-b481-4655-b8fa-5b852d627c4d; _screload=; sessionID=1701343825079.yj1v8lu; _clck=15ihb8q%7C2%7Cfgx%7C0%7C1421; _rdt_uuid=1700691058163.f70644de-4c4c-4d72-9993-3325d64472ce; _scid=54de8d47-b481-4655-b8fa-5b852d627c4d; _tt_enable_cookie=1; _ttp=9xCo7I7rq4cim1TmemFXat-3L-b; _a_id=cdl96-n0e2n-pt3d-um7yw; _gcl_au=1.1.1884265988.1700691057","Host":"webwork.vle.keele.ac.uk"},"URI":"/webwork2/FYO-00211-2023-SEM1-A/Quiz_2/","Time":"Thu Nov 30 11:33:34 2023","Method":"POST","Warnings":["Use of uninitialized value in hash element at /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced.pm line 581."],"Error record identifier":"ad4effd1-30c7-5dfe-86bd-bb698523689e::4bc9bef7-8f74-11ee-8d40-f02aceb4137c"} Cannot find a WeBWorK role that corresponds to the LMS role of TeachingAssistant. at /opt/webwork/webwork2/lib/WeBWorK.pm line 321.\n * in Carp::croak called at line 581 of /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced.pm\n * in WeBWorK::Authen::LTIAdvanced::create_user called at line 516 of /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced.pm\n * in WeBWorK::Authen::LTIAdvanced::authenticate called at line 383 of /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced.pm\n * in WeBWorK::Authen::LTIAdvanced::verify_normal_user called at line 320 of /opt/webwork/webwork2/lib/WeBWorK/Authen.pm\n * in WeBWorK::Authen::do_verify called at line 217 of /opt/webwork/webwork2/lib/WeBWorK/Authen.pm\n * in WeBWorK::Authen::verify called at line 321 of /opt/webwork/webwork2/lib/WeBWorK.pm, referer: https://kle.keele.ac.uk/

In reply to Zak Zarychta

Re: LTI access woes 01

by Glenn Rice -
It seems tat your LMS reports the user role for teaching assistant's as "TeachingAssistant". So you will need to add 'TeachingAssistant' => 'ta' to the "LMSrolesToWeBWorKroles" hash in authen_LTI.conf (for WeBWorK version 2.17 or before) or authen_LTI_1_1.conf (for 2.18).
In reply to Glenn Rice

Re: LTI access woes 01

by Zak Zarychta -

I've added in "'TeachingAssistant" => "ta" (without the space) and that worked. 

Thanks.

In reply to Zak Zarychta

Re: LTI access woes 01

by Zak Zarychta -
Receiving further feedback from students who have had issues connecting where the connection times out when the selected LTI tool is being launched.
This appears to be an issue with the institution's wireless network. Students can still access from their phone via their mobile 4G network and from desktops connected via wired ethernet.