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

1EdTech/IMS certification HTTP 406 error during line item creation #188

Open
scalebig opened this issue May 9, 2023 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@scalebig
Copy link

scalebig commented May 9, 2023

First, thank you for this great library - it has been super helpful for LTI Advantage integration. We have passed all of the LTI Core tests using it. However, when testing the the "LTI 1.3 Assignments and Grades Results" section, it is failing while trying to create a line item on their test system (See the request/response below) I don't think its an issue with LTIJS, but I am curious if anyone else has seen this issue.

Request:

POST /ltitool/rest/assignmentsgrades/15685/lineitems HTTP/1.1
user-agent: got (https://github.com/sindresorhus/got)
authorization: Bearer 1CE64FC20AD44164AE8870574BFC6A678E20B15C4E74C09E7
content-type: application/vnd.ims.lis.v2.lineitem+json
accept: application/json
content-length: 68
accept-encoding: gzip
Host: ltiadvantagevalidator.imsglobal.org
Connection: close

{"resourceId":91166,"scoreMaximum":10,"label":"Quiz 1","tag":"quiz"}

Response:

HTTP/1.1 406 Not Acceptable
Server: nginx/1.14.0 (Ubuntu)
Date: Tue, 09 May 2023 20:41:49 GMT
Content-Type: application/json;charset=ISO-8859-1
Content-Length: 86
Connection: close

{ "errorMsg : " : "Could NOT Parse the Submitted Paylod for Creating a New LineItem" }

Expected behavior
I would expect IMS system to respond with a HTTP 200.

Provider logs
See above

Ltijs version

  • Version 5.7.4

NodeJS version

  • Version - 14.15.1

I have also filed a ticket with IMS support, but covering all of the interested parties ....

@scalebig scalebig added the bug Something isn't working label May 9, 2023
@scalebig
Copy link
Author

scalebig commented May 10, 2023

1EdTech finally figured it out on their end (their system should handle this better though...) see their message:

image

Canvas, Blackboard, D2L and Sakai all handle those fields as number type fine... 🤦‍♂️

@Cvmcosta - maybe the library could convert those properties to strings before sending? (I could probably create a PR for that)

@Cvmcosta
Copy link
Owner

Hello @scalebig I am happy you were able to find a solution. And thanks for the suggestion, you are correct. I will try to add this to a future update. I won't close this ticket yet to keep this in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants