Created
November 26, 2012 06:11
-
-
Save admc/4146803 to your computer and use it in GitHub Desktop.
errr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/adam/Projects/developerexchange.io/model.js:15 | |
exports.User.load(info.id, function(err, temp) { | |
^ | |
TypeError: Cannot read property 'id' of undefined | |
at Base.save (/Users/adam/Projects/developerexchange.io/model.js:15:29) | |
at Object.exports.handle (/Users/adam/Projects/developerexchange.io/node_modules/nano/node_modules/errs/lib/errs.js:191:5) | |
at Request._callback (/Users/adam/Projects/developerexchange.io/node_modules/nano/nano.js:298:16) | |
at Request.init.self.callback (/Users/adam/Projects/developerexchange.io/node_modules/nano/node_modules/request/main.js:120:22) | |
at Request.EventEmitter.emit (events.js:91:17) | |
at Request.<anonymous> (/Users/adam/Projects/developerexchange.io/node_modules/nano/node_modules/request/main.js:555:16) | |
at Request.EventEmitter.emit (events.js:88:17) | |
at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (/Users/adam/Projects/developerexchange.io/node_modules/nano/node_modules/request/main.js:517:14) | |
at IncomingMessage.EventEmitter.emit (events.js:115:20) | |
at IncomingMessage._emitEnd (http.js:366:10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like you are not checking for
if (err) {}
in your callback.Either that or remember that in
nano
the second argument is the body, not the third