learn.moodle.net Badges: "Failed to upload badge: Unable to reach URL" error

learn.moodle.net Badges: "Failed to upload badge: Unable to reach URL" error

by Luca Bösch -
Number of replies: 8
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Has anyone else experienced a

Failed to upload badge: Unable to reach URL

error? The upload does not seem to work, neither with image upload nor providing an URL (I tried https://learn.moodle.org/badges/mybadges.php?download=773&hash=a61b81c2fb4c8da7ab98951e0109f650dd3fa4da).

Best,
Luca

Average of ratings: -
In reply to Luca Bösch

Re: learn.moodle.net Badges: "Failed to upload badge: Unable to reach URL" error

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 Luca,

I think the problem with Learn Moodle badges is because we recently moved the site from learn.moodle.net to learn.moodle.org.

Thus, please can you try the following method to add your Learn Moodle badges to your Badgr backpack:

  1. Log in to https://learn.moodle.org/
  2. Go to Preferences / Backpack settings and disconnect from your old backpack then connect to badgr.io.
  3. Go to Preferences / Manage badges and click the 'Add to backpack' link for each badge.
Average of ratings: Useful (5)
In reply to Helen Foster

Re: learn.moodle.net Badges: "Failed to upload badge: Unable to reach URL" error

by Luca Bösch -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Thanks a lot, Helen.

I managed to add the badges to badgr.io.
Your trick worked!

Best,
Luca
Average of ratings: Useful (1)
In reply to Luca Bösch

Re: Adding Learn Moodle badges to your Badgr backpack [Solved]

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

Good to hear! Thanks Luca for confirming.

In reply to Helen Foster

Re: Adding Learn Moodle badges to your Badgr backpack [Solved]

by Akinwale Oshodi -
Hi Helen,
I also had same issues with error but your suggestion works. The problem I now have is that I noticed that the name displayed for my moodle badges on Badgr is not mine. Here are the links below

Badgr

https://learn.moodle.org/badges/badge.php?hash=dc1ab94b2a00d93ea4029e48f5ffc71511277614
https://learn.moodle.org/badges/badge.php?hash=6b70e06fd7927aedb05d1cbc87c6087e0d6ed09b
Moodle
I'm  not sure not sure why they don't match. Would be glad if you could look into this.

Thank you.
Average of ratings: Useful (1)
In reply to Akinwale Oshodi

Re: Adding Learn Moodle badges to your Badgr backpack [Solved]

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

Akinwale, I'm confused about "the name displayed for my moodle badges on Badgr is not mine". Can you perhaps provide a screenshot to illustrate what you mean?

Average of ratings: Useful (1)
In reply to Helen Foster

Re: Adding Learn Moodle badges to your Badgr backpack [Solved]

by Mónica Sánchez -

Hi, Helen,

I had the same issue as Akinwale.

Once the badges are on Badgr, added one by one from learn.moodle, when you get the View external Criteria URL from Badgr, it shows the badge criteria with a different name.

Actually, it shows different names for each badge, at least in my case.

I send a couple of images that shows the badge criteria URL from Badgr vs the badge criteria URL from Learn.Moodle, for a particular badge.

Many thanks!


Attachment 1. BadgeCriteriaFromBadgr.png
Attachment 2. BadgeCriteriaFromLearnMoodle.png
Average of ratings: Useful (1)
In reply to Mónica Sánchez

Re: 'View external Criteria URL' on Badgr links to badge awarded to somebody else

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

Thanks Mónica for your further explanation and images. I managed to reproduce the problem and reported it as MDL-66940 for developers to investigate.

However, as I mentioned in the issue, one badge had a correct 'View external Criteria URL' link, so I'm wondering why the link is sometimes correct and sometimes wrong. Anyone have any ideas?

In reply to Helen Foster

Re: 'View external Criteria URL' on Badgr links to badge awarded to somebody else

by Mónica Sánchez -

Thanks, Helen!

Based on the fact that each badge has one and just one right 'View external Criteria URL' link, and trying to find a reason of this odd behavior —so a solution—, I was thinking:

As far as I understand, badges are related to the user (user id, I think) so, if the related URL from Learn.Moodle is ok —and it is ok—, the thing (mix?) could have been done when the badgr backpack connection is set, for each badge.

I really don’t know, I’m just thinking out loud.

But that could explain why the badge URL related from Badgr is not the right one.

Saludos!