Add to backpack - Invalid Request (Badgr integration)

Add to backpack - Invalid Request (Badgr integration)

by Ian Van Kretschmar -
Number of replies: 3

As of yesterday we are running Moodle 3.7.2+ (Build: 20191012).  We have our environment configured to use Badgr as the external backpack connection.  We can create and award site and course badges.  Users can connect to their own Badgr accounts through profile preferences.  The Backpack settings are valid (same issuer email address and password used for the Badgr 'admin' account).

When a user clicks "Add to backpack", moodle returns an "Invalid Request."

What are we doing wrong?


Attachment MoodleError.png
Attachment MoodleErrorWithDebug.png
Average of ratings: Useful (1)
In reply to Ian Van Kretschmar

Re: Add to backpack - Invalid Request (Badgr integration)

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Moving to Badges forum...
In reply to Ian Van Kretschmar

Re: Add to backpack - Invalid Request (Badgr integration)

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Ian,

Apologies for the long delay in replying to your post. Hopefully you no longer get an 'Invalid request' error, but in case you do (or if anyone else reading this discussion has the same problem), we've found it to be caused by a temporary problem on the badgr.io site. When we tried again later, adding a badge from Moodle to backpack worked fine!

As you mention, you do need to check that the backpack settings are valid and that Badgr is correctly configured as the external backpack for the site, as otherwise this is another reason for getting an 'Invalid request' error (as mentioned in MDL-65545).

In reply to Helen Foster

Re: Add to backpack - Invalid Request (Badgr integration)

by Ian Van Kretschmar -
This problem is back since upgrading to Moodle release 3.8.3+ (Build: 20200605). The site-level backpack settings for the sight are correct and verified. The backpack settings for our test user account are correct and connected (to the US site). Each time a user tries to Add to Backpack, Moodle complains with an "invalid request."  What steps can we take to problem-solve this issue?
Average of ratings: Useful (1)