max-mapper / max-mapper/couchpubtato

change.doc._id undefined

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
115
Forks
10
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at couchpubtato.js line 88 and trace the event emitted from dbemitter/main.js line 30. Reproduce the failure with the environment listed in the report, then determine which event shape is expected and what should happen when the document data is absent. Done means the reported crash is covered by a regression test or verified behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.