## WeBWorK Problems

### "Your score was not successfully sent to the LMS" - error appears randomly

by Aung Linn -
Number of replies: 6
Hi,

I am setting up LTI integration with Canvas. Everything is working fine except getting this error - "Your score was not successfully sent to the LMS". The error appears randomly from time to time. The grades are updated in LTI when there is no error.

Warning messages
• Unable to update LMS grade. Error: Unauthorized at /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm line 283.

This is the Error log from Apache

Could anyone help what's wrong with this? Thanks.

### Re: "Your score was not successfully sent to the LMS" - error appears randomly

by Danny Glin -
I have a guess:

When Canvas logs a student in to WeBWorK, it sends a unique identifier for grade passback, so it knows where to put the grade that WeBWorK sends back. It's possible that there are time limits on these, which would mean that if a student is logged in to WeBWorK for too long, Canvas will stop accepting grade passback for that session.

Are you able to test to see if this behaviour only happens after being logged in to WeBWorK for a long time?

### Re: "Your score was not successfully sent to the LMS" - error appears randomly

by Aung Linn -
Hi Danny,

After being logged in to WeBWork for a long time, the WW logged me off and asked me to log in back again.

I tried submitting the answers repeatedly in a short amount of time and the error appeared randomly. It worked like 3 out of 10 times submissions and randomly happened when submitting the answers and updating grades to the Canvas.

LTI Mass updates works ok though. Maybe I should turn off LTIGradeOnSubmit and just make lower LTIMassUpdateInterval as last resort.

### Re: "Your score was not successfully sent to the LMS" - error appears randomly

by Danny Glin -
When you logged back in, was it through Canvas, or by entering your username and password directly into WeBWorK?

It's weird that it is intermittent. I don't have any explanation for that.

### Re: "Your score was not successfully sent to the LMS" - error appears randomly

by Aung Linn -
I used Canvas link to log back into WeBWork. It is quite a strange issue.

### Re: "Your score was not successfully sent to the LMS" - error appears randomly

by Michael Gage -
Which server are you using for moodle and which server for the webwork webservice? Is this local? or are you using the MAA server?

About how many students are using this server? It's possible that using the "submit immediately" with lots of students may overload the system at times.
It is possible to do batch submissions of grades every 20 minutes or so.