mozilla / openbadges-backpack

Mozilla Open Badges Backpack
https://backpack.openbadges.org/
Other
862 stars 263 forks source link

issuer API not returning expected values in callback function #1155

Open zawmyohtut opened 6 years ago

zawmyohtut commented 6 years ago

I am using issuer API on my application and the API can push the badges to the mozilla backpack. however, in the callback function there are no errors or success returned values. OpenBadges.issue([assertion_url], function(errors, successes){ console.log(errors); console.log(successes); });

even if pushing the badges fail, errors log only output the array with the assert url but NO "reason"... without the reason, there is no way we can prompt approprate message to the end user.

and also with successes, it just return empty array.

And idea about this? thank you very much in advance.

suojian commented 6 years ago

I experience same issue that the badge fails to publish, but the errors object only returns assert url without any reason. I have tested the assert url, there is no problem to access the url

jbohrer commented 6 years ago

@suojian Perhaps this is a slightly different issue because at the time @zawmyohtut reports successful pushes to the backpack, while yours are failing? Of course having reason messages would help. Grateful if @auralon @omidmufeeddm or @mattdigitalme could confirm whether certs or keys have changed that might be causing the failed pushes. Thanks everyone.

suojian commented 6 years ago

I tried to upload badge by using http, it's uploaded successfully, but failed with https, the errors parameter only contains assertion url but no any error reason. I also post it in https://groups.google.com/forum/#!topic/openbadges-dev/QHdtme209vc and there is another incident from Finland and it points to https.