mozilla / openbadges-badgekit

No Longer Maintained
https://badgekit.org
Mozilla Public License 2.0
123 stars 84 forks source link

Error when using bulk route #467

Open danharel opened 9 years ago

danharel commented 9 years ago

It appears I'm still not able to get a webhook for some badges when issuing multiple badges, even after implementing the bulk route. I'm consistently only able to send a maximum of 6 badges. The other badges just drop off. I believe this is the response printed by the API corresponding to this erroneous functionality:

{
"name":"badgekit-api",
"hostname":<redacted>,
"pid":2,
"level":50,
"err":{
    "message":"socket hang up",
    "name":"Error",
    "stack":"Error: socket hang up\n    at createHangUpError (http.js:1476:15)\n    at Socket.socketOnEnd (http.js:1572:23)\n    at Socket.g (events.js:180:16)\n    at Socket.emit (events.js:117:20)\n    at _stream_readable.js:943:16\n    at process._tickDomainCallback (node.js:463:13)",
    "code":"ECONNRESET"
}, 
"msg":"error dealing with webhooks when awarding badge",
"time":"2014-10-10T16:09:40.204Z",
"v":0
}

Has anybody else had a similar experience? Does anybody know what the problem may be?