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

Luca Bösch -
回帖数:8
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像 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

回复Luca Bösch

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

Helen Foster -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 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.
回复Helen Foster

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

Luca Bösch -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像 Testers的头像
Thanks a lot, Helen.

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

Best,
Luca
回复Luca Bösch

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

Helen Foster -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 Translators的头像

Good to hear! Thanks Luca for confirming.

回复Helen Foster

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

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.
回复Akinwale Oshodi

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

Helen Foster -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 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?

回复Helen Foster

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

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!


附件 1. BadgeCriteriaFromBadgr.png
附件 2. BadgeCriteriaFromLearnMoodle.png
回复Mónica Sánchez

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

Helen Foster -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 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?

回复Helen Foster

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

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!