Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Microsoft Learn LTI in D2L Brightspace returning Error - currently unable to handle this request #155

Closed
NShresthaonGH opened this issue Aug 15, 2021 · 11 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@NShresthaonGH
Copy link

NShresthaonGH commented Aug 15, 2021

Dear Team,

We integrated Microsoft Learn LTI in our D2L Brighspace MLS. We have ran into some issues with the Integration. When we lunch the application from LMS, we received the following error on LMS side.

0

At Azure side, we are getting the below error when trying to launch the application form our LMS it is hitting the “'LtiAdvantageLaunch’” Function and getting the below error.

2021-08-05T06:54:24.213 [Information] Executing 'LtiAdvantageLaunch' (Reason='This function was programmatically called via the host APIs.', Id=0a53b2e7-fefa-4f8b-9509-98a88ea8cf12)

2021-08-05T06:54:24.369 [Error] Executed 'LtiAdvantageLaunch' (Failed, Id=0a53b2e7-fefa-4f8b-9509-98a88ea8cf12, Duration=325ms)Object reference not set to an instance of an object.

It would be greatly appreciated if you could point us in the right direction.
Thank you.

@leestott leestott added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Aug 20, 2021
@leestott
Copy link
Contributor

@NShresthaonGH thanks for the issue at present we only have installation documented for Moodle, canvas and Blackboard. I suggest you follow the troubleshooting guide and debug the Azure Functions and app insights to understand where the issue is with the D2L implementation. If you look at the OpenEdx issue #103 this may provide some more insights we need help documenting the implementation on D2L so any help in this would be greatly appreciated.

@leestott
Copy link
Contributor

leestott commented Aug 31, 2021

@NShresthaonGH see #68 @alphaz18 thanks for PR regarding the outh support for Brightspace D2L #156

@NShresthaonGH This may unblock you if you could validate this works.

@NShresthaonGH
Copy link
Author

NShresthaonGH commented Sep 5, 2021

Hi @leestott,

Thank you for providing us the information to troubleshoot our LTI situation. We went through the document but we could not find the correct information to rectify the situation.

However, we have made some changes in LMS interchanging URLs between Redirect UTLs and OpenID Connect Login URLs. This now produced new error in both Azure and LMS when we lunch the LTI in MLS.

Images below indicate the original setting in LMS and Original Error.

Setting at LMS:
1

Error at LMS once lunch the LTI
0

Error received at Azure side:
4

After changes made in made LMS interchanging URLs between Redirect URLs and OpenID Connect Login URLs

Setting at LMS:
2

Error at LMS once lunch the LTI
3

Error received at Azure side:
5

Any suggestions to rectify this situation would be greatly appreciated.
Thank you.

@leestott
Copy link
Contributor

leestott commented Sep 7, 2021

@NShresthaonGH so you need to use the forked code which is the following PR this will help us test and validate this works.

@alphaz18 has created a PR from their code base which has been modified to support D2L and also developed the instructions for installation it would be great for you to validate this.. #156

This is a direct link to @alphaz18 repo https://github.com/alphaz18/Learn-LTI/tree/Add-Registration-Attribute-Audience you need to download this source and install following the instructions provided to validate does the Brightspace D2L work correctly.. Please make any feedback to the PR #156

@NShresthaonGH
Copy link
Author

Hi @leestott and @alphaz18,

Thank you for your advice to download the source and install from repository https://github.com/alphaz18/Learn-LTI/tree/Add-Registration-Attribute-Audience to add Audience attribute. The code has been downloaded and redeployed the LTI on Azure.
While configuring the LTI in LMS, we followed steps from https://github.com/alphaz18/Learn-LTI/blob/Add-Registration-Attribute-Audience/docs/CONFIGURATION_GUIDE.md for Brightspace LMS. At the time of Tool registration, we realized that the ‘Audience’ filed is missing.

Registration

According to the steps mentioned in the article, there should be ‘Audience’ filed on Tool Registration page.

Add-Registration-Attribute-Audience · alphaz

But we proceeded and completed Tool registration without ‘Audience’ field.

Now, when we lunch LTI from LMS it tried to load assignment.

Assignment Loading

Error Loading Assignment

But it ends up with the error ‘Oops! Something went wrong’. We also realized that this error usually occurs when SSL certificate is not valid. We have valid SSL certificate in our environment but still receiving this error.

At Azure site, we found the following errors:

666be333-4d8c-4cca-9feb-1d6bc8e3493e

5554811e-8698-483b-a6df-247ddc05231a

Is this error indicating that Tool Registration is incomplete as ‘Audience’ filed was missing and is there a way to add this filed? It would be greatly appreciated if you could point us in the right direction.

Thank you for your help.

@alphaz18
Copy link
Contributor

it looks like you may have missed the client code, how did you download the code and deploy it? you linked to the correct branch but seems the code you deployed may not contain the changes, in the code you downloaded please verify in file: "client/src/Features/Platform/PlatformRegistrationFields.ts" that the Audience field is in there, if it is not, then you may have the wrong code.

If it is there, how did you deploy? normally you should just be able to use the run.bat.

Regards,
alphaz18

@sjscicluna83
Copy link

@alphaz18 you were correct i downloaded the code in zip format and changing branches did not update the code i needed to clone che repo down for this to work.

@NShresthaonGH
Copy link
Author

@leestott and @alphaz18 thank you very much for you help and suggestions. LTI is now working in our Brightspace environment. However, we needed to update user's email address in LMS to match with user's sign in for the application. As in our environment, email address of the user an sign in name do not match. Just would like to know whether it is possible to make this work even user's sign in and email address are different. Once again, thank you for your help.

Regards,
NShresthaonGH

@leestott
Copy link
Contributor

leestott commented Sep 21, 2021

@NShresthaonGH thanks for validating the instrucions and deployment @alphaz18 thanks for the help!

@NShresthaonGH see #158 for OpenEdx in relation to given name this may help.. @adbindal any comments?

@NShresthaonGH I think we you will need to add at least the user sign-in email into the AAD

@leestott
Copy link
Contributor

leestott commented Sep 21, 2021

@skmckenFVSD Please validate the brightspace installation as per @alphaz18 instructions and code base see #156 test code base https://github.com/alphaz18/Learn-LTI/tree/Add-Registration-Attribute-Audience

@leestott
Copy link
Contributor

leestott commented Nov 9, 2021

Brightspace D2L is now fully supported in the Learn LTI application https://github.com/microsoft/Learn-LTI/blob/main/docs/CONFIGURATION_GUIDE.md#Brightspace-D2L

@leestott leestott closed this as completed Nov 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants