Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70139

"Invalid request" when sending badges to backpack

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MDL-70139-master
    • Hide

      Requirements

      • 2 different Badgr.io US accounts
      • Outgoing server configured (mailcacher or similar)
      • ngrok or similar (for having a public URL in your Moodle instance).

       

      Setup

      1. Login as admin.
      2. Go to "Site administration / Badges / Badges settings" and set:
        • Badge issuer name: "my_moodle" (or any other value you consider)
        • Badge issuer email address: email user for a Badgr.io (US) account.
      3. Go to "Site administration / Badges / Manage backpacks", edit https://badgr.io and add the credentials (email and password), for a valid Badbr.io account.
      4. Go to "Site administration / Badges / Backpack settings" and confirm the "Active external backpack" is set to "http://badgr.io".
      5. Create a badge and award it to some users.

       

      Testing instructions

      1. Login as some of the users awarded with the badge.
      2. Go to "Preferences / Badges / Backpack settings".
      3. Connect to the backpack using the second Badgr.io account.
      4. Open the verification email and open the URL to validate the account.
      5. Confirm status is set to Connected.
      6. Go to the user profile, open the badge and click over "Add to backpack" button.
      7. Confirm the message " Added badge to backpack " is displayed.
      8. Access to  https://badgr.io using this user credentials and confirm the badge is displayed (sometimes it might take a few minutes).

       
       

      Show
      Requirements 2 different Badgr.io US accounts Outgoing server configured (mailcacher or similar) ngrok or similar (for having a public URL in your Moodle instance).   Setup Login as admin. Go to "Site administration / Badges / Badges settings" and set: Badge issuer name: "my_moodle" (or any other value you consider) Badge issuer email address: email user for a Badgr.io (US) account. Go to "Site administration / Badges / Manage backpacks", edit https://badgr.io and add the credentials (email and password), for a valid Badbr.io account. Go to "Site administration / Badges / Backpack settings" and confirm the "Active external backpack" is set to "http://badgr.io". Create a badge and award it to some users.   Testing instructions Login as some of the users awarded with the badge. Go to "Preferences / Badges / Backpack settings". Connect to the backpack using the second Badgr.io account. Open the verification email and open the URL to validate the account. Confirm status is set to Connected. Go to the user profile, open the badge and click over "Add to backpack" button. Confirm the message " Added badge to backpack " is displayed. Access to  https://badgr.io  using this user credentials and confirm the badge is displayed (sometimes it might take a few minutes).    
    • Moppies Kanban

      It seems that some of the changes in MDL-70066 are causing this error under some circumstances.

      You'll need 2 different Badgr.io US accounts and outgoing server configured (you can use mailcatcher or similar).

      Steps to reproduce:

      1. Login as admin.
      2. Go to "Site administration / Badges / Badges settings" and set:
        • Badge issuer name: "stable_310" (or any other value you consider)
        • Badge issuer email address: email user for a Badgr.io (US) account.
      3. Go to "Site administration / Badges / Manage backpacks", edit https://badgr.io and add the credentials (email and password), for a valid Badbr.io account.
      4. Go to "Site administration / Badges / Backpack settings" and confirm the "Active external backpack" is set to "http://badgr.io".
      5. Create a badge and award it to some users.
      6. Login as some of the users awarded with the badge.
      7. Go to "Preferences / Badges / Backpack settings".
      8. Connect to the backpack using a different Badgr.io account.
      9. Open the verification email and open the URL to validate the account.
      10. Go to the profile, open the badge and click over "Add to backpack" button.

      Expected behaviour

      The badge is sent to the backpack and a message saying it has been sent is displayed.

       

      Current behaviour

      The following error appears:

       

        1. badge_uploaded_ok_310.png
          89 kB
          Eloy Lafuente (stronk7)
        2. badge_uploaded_ok_38.png
          86 kB
          Eloy Lafuente (stronk7)
        3. badge_uploaded_ok_39.png
          86 kB
          Eloy Lafuente (stronk7)
        4. badge_uploaded_ok_400.png
          87 kB
          Eloy Lafuente (stronk7)
        5. error_badges.png
          635 kB
          Sara Arjona (@sarjona)
        6. error_before_patch.png
          155 kB
          Eloy Lafuente (stronk7)

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Carlos Escobedo Carlos Escobedo
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 57 minutes
                3h 57m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.