-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
/members and /grade endpoints are not working. They are throwing 500 error. #193
Comments
@RajendraChowdary21 Hello, have you found any solutions to this issue or discovered any other workarounds? I'm experiencing the same error. |
@RajendraChowdary21 @Liziqiuqiu Hello! Nice to meet you! The error in question is likely caused by lack of permissions when setting up the tool in the LMS. Which LMS are you using? Did you enable these services when setting up the tool? |
Does this have something to do with the scope? It appears that the scope is inconsistent. For example, in the token, it shows the following scopes: However, in the provider log, only the 'lineitem.readonly' scope is used.
|
Hello @Liziqiuqiu, you error log looks different than the one presented by the first person to post this issue. Do you have any logs beyond these ones? Is the suer you are sending grades to a student in the course? It needs to be for the grade to be successfully sent. |
500 error
Our tool has been added to canvas and while trying to hit the "names and roles service" and "grade service" I'm getting 500 error.
In /members endpoint I have added consoles. first console is happening and I'm getting the token. second console is not happening and Its directly going to catch block and error is being consoled. The error that is being consoled is
error console --> Cannot read property 'context_memberships_url' of undefined
And total response that is coming to this endpoint is below
Expected behavior
The response that is expected as shown here
Provider logs
provider:main Platform already registered +57ms
provider:main Receiving request at path: /members +48s
provider:main Path does not match reserved endpoints +2ms
provider:main Cookies received: +2ms
provider:main [Object: null prototype] {} +1ms
provider:main Ltik found +2ms
provider:main Ltik successfully verified +29ms
provider:main Attempting to retrieve matching session cookie +1ms
provider:main Dev Mode enabled: Missing session cookies will be ignored +1ms
provider:auth Valid session found +0ms
provider:main Passing request to next handler +27ms
provider:namesAndRolesService Attempting to retrieve memberships +0ms
provider:namesAndRolesService Target platform: https://canvas.instructure.com +1ms
provider:namesAndRolesService Attempting to retrieve platform access_token for [https://canvas.instructure.com] +28ms
provider:platform Access_token found +0ms
provider:namesAndRolesService Access_token retrieved for [https://canvas.instructure.com] +89ms
error console --> Cannot read property 'context_memberships_url' of undefined
provider:main Receiving request at path: /members +967ms
provider:main Path does not match reserved endpoints +1ms
provider:main Cookies received: +1ms
provider:main [Object: null prototype] {} +0ms
provider:main Ltik found +1ms
provider:main Ltik successfully verified +5ms
provider:main Attempting to retrieve matching session cookie +2ms
provider:main Dev Mode enabled: Missing session cookies will be ignored +0ms
provider:auth Valid session found +1s
provider:main Passing request to next handler +14ms
provider:namesAndRolesService Attempting to retrieve memberships +871ms
provider:namesAndRolesService Target platform: https://canvas.instructure.com +1ms
provider:namesAndRolesService Attempting to retrieve platform access_token for [https://canvas.instructure.com] +15ms
provider:platform Access_token found +900ms
provider:namesAndRolesService Access_token retrieved for [https://canvas.instructure.com] +11ms
error console --> Cannot read property 'context_memberships_url' of undefined
Screenshots
Ltijs version
NodeJS version
Platform used
The text was updated successfully, but these errors were encountered: