Skip to content

Instantly share code, notes, and snippets.

@cmcavoy
Created May 31, 2013 22:44
Show Gist options
  • Save cmcavoy/5688431 to your computer and use it in GitHub Desktop.
Save cmcavoy/5688431 to your computer and use it in GitHub Desktop.
info: 127.0.0.1 - - [Fri, 31 May 2013 22:41:07 GMT] "POST /signup HTTP/1.1" 303 - "http://localhost:8888/signup" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0"
Executing: SELECT * FROM `Learners` WHERE `Learners`.`id`=1 LIMIT 1;
info: API request: "GET http://openbadger-csol.mofostaging.net/v2/user" Error code=ECONNRESET
undefined
/home/cmcavoy/Dropbox/projects/csol-site/openbadger.js:173
badges = _.map(data.badges, normalizeBadgeInstance)
^
TypeError: Cannot read property 'badges' of undefined
at Api.getUserBadges.func (/home/cmcavoy/Dropbox/projects/csol-site/openbadger.js:173:28)
at Request._callback (/home/cmcavoy/Dropbox/projects/csol-site/api.js:118:14)
at Request.init.self.callback (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/request/index.js:148:22)
at Request.EventEmitter.emit (events.js:96:17)
at ClientRequest.Request.init.self.clientErrorHandler (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/request/index.js:257:10)
at ClientRequest.EventEmitter.emit (events.js:96:17)
at Socket.socketOnEnd [as onend] (http.js:1470:9)
at TCP.onread (net.js:419:26)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment