mozilla / openbadger

badger badger badger badger
Mozilla Public License 2.0
34 stars 23 forks source link

badges that were created using badger.openbadges.org instance generate error when sending to backpack #328

Closed threeqube closed 10 years ago

threeqube commented 10 years ago

This bug was reported by the folks at DigitalMe.

screen shot 2013-12-09 at 18 39 14

stenington commented 10 years ago

Example assertion: http://badger.openbadges.org/badge/assertion/39841d20863cda3d5c2e8fab6f0b0c1d93b79373

stenington commented 10 years ago

The backpack's unhappy while the validator says it's fine because they're using different versions of the underlying validation library. :astonished:

The backpack is blowing up saying 'recipient.salt': { [Error: must be a string] message: 'must be a string', code: undefined } which is technically incorrect. The spec says the salt is optional.

stenington commented 10 years ago

I think the work to be done is:

stenington commented 10 years ago

@threeqube As a first step at improving error messaging, what's a better generic error message than "undefined"?

threeqube commented 10 years ago

@stenington well why does this error occur?

stenington commented 10 years ago

@threeqube Well, I was thinking of putting in a better generic message, not a specific message for this actual problem. I think it'll get covered in one of the many open tickets to make our error messaging better though.

threeqube commented 10 years ago

How about, "We have encountered an issue. Please try again later."?

iamjessklein commented 10 years ago

+1 @stenington - I wrote a bunch of tickets on error messages. I do like that suggestion in the interim @threeqube