Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Canvas - Failed sending grade to platform! HTTPError: Internal Server Error

See original GitHub issue

Describe the bug I’m running the Example Ltijs Server, when I click on “submit grade” I’m getting Failed sending grade to platform! HTTPError: Internal Server Error

Expected behavior Post grades to the canvas

Provider logs provider:main Attempting to connect to database +0ms provider:database Database connected +0ms provider:database Database connection open +3ms provider:main Ltijs started listening on port: 3000 +39ms

| | |__ | | | |/ | | | | | | | | | (
| | | | | | _ | |_

| |____| | | | | |
| |) | ||| |()___/|/

LTI Provider is listening on port 3000!

LTI provider config:

App Route: / Initiate Login Route: /login Keyset Route: /keys Session Timeout Route: /sessiontimeout Invalid Token Route: /invalidtoken

Starting in Dev Mode, state validation and session cookies will not be required. THIS SHOULD NOT BE USED IN A PRODUCTION ENVIRONMENT! provider:main Platform already registered +28ms provider:main Receiving request at path: /grade +7m provider:main Path does not match reserved endpoints +0ms provider:main Cookies received: +0ms provider:main [Object: null prototype] { provider:main ‘ltiaHR0cHM6Ly9jYW52YXMuaW5zdHJ1Y3R1cmUuY29tMTYxMDgwMDAwMDAwMDAwMTA3MTUwOjY2Y2FjNTJkODY4N2UyZTBmYjJmOTM3ODc0YzM1ZjdlZTE5ZGU4YWU%3D’: ‘a711bf8e-7a3a-464b-952d-5cd48d142cfc’ provider:main } +0ms provider:main LTIK found +1ms provider:main LTIK successfully verified +2ms provider:main Attempting to retrieve matching session cookie +0ms provider:main Dev Mode enabled: Missing session cookies will be ignored +0ms provider:auth Valid session found +0ms provider:main Passing request to next handler +16ms provider:gradeService Target platform: +0ms provider:gradeService Attempting to retrieve platform access_token for [] +3ms provider:platform Valid access_token for not found +0ms provider:platform Attempting to generate new access_token for +0ms provider:platform With scopes: +0ms provider:auth Awaiting return from the platform +0ms Response code 500 (Internal Server Error)



Ltijs version

  • Version [5.3.3]

NodeJS version

  • Version [12]

Platform used

  • [Canvas]

Additional context await lti.registerPlatform({ url: ‘’, name: ‘Canvas sandbox’, clientId: ‘XXXXXXXXX’, authenticationEndpoint: ‘’, accesstokenEndpoint: ‘’, authConfig: { method: ‘JWK_SET’, key: ‘’ } })

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

RaghavReddycommented, Jan 18, 2021

Thanks a lot for the quick response! really appreciate it.

doldsimocommented, May 24, 2022

@Cvmcosta I get the same error. My error Message is Failed sending grade to platform! HTTPError: 500.

You mean that the canvas instance must be hostet on a server so that it is accessable from the internet, and the LTI App should also be accessable from the internet.

So my canvas instance ist hosted and accessible from the internet and my canvas LTI App is running over nkrog-tunnle, so it is also accessible. But I am getting the error message. When I use only localhost as you descibed before it is also not working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internal server error when trying to create grade book column
Solved: Im trying to make a custom grade book column, however, when trying to do so I get this error: { "errors": [{...
Read more >
How to Clear Browser Cookies to Resolve “Error 500
If you are receiving an “Error 500 – Internal Server Error” message while trying to log into Canvas, you will need to clear...
Read more >
HTTP 500 Internal Server Error: What It Means & How to Fix It
Learn what an HTTP error 500 is, potential causes for the error, browser compatibility, and more. Plus, how to fix 500 internal server ......
Read more >
Canvas Grade Passback ReplaceResult produces 500 error
RJ,. I'm not seeing any more 500 errors in the logs for that endpoint. It looks like now it's returning a 401 due...
Read more >
How to Fix the 500 Internal Server Error in WordPress
If all methods fail to fix internal server error on your website, then it is time to get some more help. Contact your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found