maxogden/couchpubtato — Issue #4: change.doc._id undefined
Author: dixon1e
Created: 2012-01-27 21:24:50+00:00
State: open

My environment is Couchbase 1.1.3, Mac Lion, node 0.6.8 and npm 1.1.0-2

I just cloned and followed the instructions and I am getting the error:

/Users/dixon/couchpubtato/couchpubtato.js:88
if (change.doc._id in children) {
^
TypeError: Cannot read property '_id' of undefined
at EventEmitter. (/Users/dixon/couchpubtato/couchpubtato.js:88:17)
at EventEmitter.emit (events.js:88:20)
at EventEmitter.write (/Users/dixon/couchpubtato/dbemitter/main.js:30:28)
at Request.ondata (stream.js:38:26)
at Request.emit (events.js:67:17)
at IncomingMessage. (/Users/dixon/couchpubtato/node_modules/request/main.js:438:16)
at IncomingMessage.emit (events.js:67:17)
at HTTPParser.onBody (http.js:115:23)
at Socket.ondata (http.js:1137:24)
at TCP.onread (net.js:354:27)

Pretty new at this, not sure how to debug.