NRPS Issues

10 views
Skip to first unread message

Chris Filkins

unread,
Jul 21, 2025, 10:41:10 AMJul 21
to Tsugi Developers
Good morning fellow Tsugi developers :D  I'm trying to troubleshoot an issue I'm having with NRPS with Canvas.  

In my module, I'm using this simple call:

$nrps = $CONTEXT->loadNamesAndRoles(true);

Looking at the debug data, my dev instance returns an oauth token successfully...

        "Token Url: https:\/\/canvas.instructure.com\/login\/oauth2\/token",

 but for production I'm getting a 500 error response.  Any ideas why Canvas would throw a 500 error for one and not the other?

-Chris

Chuck Severance

unread,
Jul 21, 2025, 11:09:28 AMJul 21
to Tsugi Developers, Chris Filkins
Chris,

Not an expert on NRPS - but one thing that has been a problem with SakaiPlus talking to Canvas is before and after a course is published.  A lot of stuff breaks before a course is published.  Which is kind of bad because you need to publish to test.

Hope that  helps.

/Chuck

--
You received this message because you are subscribed to the Google Groups "Tsugi Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tsugi-dev+...@apereo.org.
To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/tsugi-dev/d5034a23-59d3-42d7-9e19-6d29dd2f4a45n%40apereo.org.

Chris Filkins

unread,
Jul 21, 2025, 11:18:56 AMJul 21
to Chuck Severance, Tsugi Developers
Thanks!  

I _think_ I've found the issue - Canvas isn't happy with the JWKS url, at least not anymore (it worked fine during initial testing/review two months ago).  I pulled the first key out of the url and put just the single key into the setup in Canvas, and now it's returning a key.  

-Chris

Charles Severance

unread,
Jul 21, 2025, 11:41:06 AMJul 21
to Tsugi Developers, Chris Filkins
Interestingly, the Canvas had its own proprietary public key URL format that Tsugi knows about and can produce.  Tsugi also provides a stock JWKS url that literally every LMS on the planet works with.  I wonder if there is a Canvas version thing that is looking for different stuff in its registration process,

/Chuck 

Chris Filkins

unread,
Jul 21, 2025, 11:46:37 AMJul 21
to Charles Severance, Tsugi Developers
What was frustrating is that it worked fine a little while back.  And it works fine against my local instance, but not production.  Prod hasn't been updated in a bit, and I'm not sure if the keys may have changed, but I guess this is also a good impetus to look at pulling my prod instance forward with the updated Tsugi code.  

-Chris
Reply all
Reply to author
Forward
0 new messages