kanso/node-couchapp — Issue #2: Error: doc_validation 
Author: ryanramage
Created: 2011-12-21 04:46:31+00:00
State: open

The design doc is not being uploaded on my node.couchapp style project. I am getting this error:

Build complete: 89ms
Uploading...
Error: doc_validation
Bad special document member: __attachments
at IncomingMessage. (/usr/local/lib/node/kanso/src/kanso/couchdb.js:221:35)
at IncomingMessage.emit (events.js:88:20)
at HTTPParser.onMessageComplete (http.js:137:23)
at Socket.ondata (http.js:1124:24)
at TCP.onread (net.js:336:27)
Failed

I can print out the design doc , before the final callback

doc = packages.merge(doc, app.doc);
console.log(doc);

And here is part of the doc

__attachments:
[ { root: '/Users/ryan/github/couch-audio-recorder/html',
prefix: undefined } ],
_attachments: {} }

Just wondering what part of kanso should be removing this, or should it be cleaned up before the final callback?