iriscouch / follow

Very stable, very reliable, NodeJS CouchDB _changes follower
Apache License 2.0
393 stars 82 forks source link

JSON parse issue #31

Open mikeal opened 11 years ago

mikeal commented 11 years ago

Fairly certain CouchDB isn't sending invalid JSON, just that the line parser might be fucked up in follow.

SyntaxError: Unexpected token H
    at Object.parse (native)
    at Request.db_response [as _callback] (/node_modules/follow/lib/feed.js:122:17)
    at Request.self.callback (/node_modules/request/index.js:142:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/node_modules/request/index.js:856:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/node_modules/request/index.js:808:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:870:14
    at process._tickDomainCallback (node.js:459:13)