iriscouch/follow — pull request #11 by mborho (2012-03-03 17:30:23+00:00)
Title: TypeError: Cannot read property 'body' of undefined

When couchdb gets stopped, this exception gets raised, which prevents reconnection when couchdb is up again

TypeError: Cannot read property 'body' of undefined
at Request.on_feed_response [as onResponse] (/home/node/local/node-0.6.6/lib/node_modules/cradle/node_modules/follow/lib/feed.js:211:12)
at Request. (/home/node/local/node-0.6.6/lib/node_modules/cradle/node_modules/follow/node_modules/request/main.js:186:60)
at Request.emit (events.js:67:17)
at ClientRequest. (/home/node/local/node-0.6.6/lib/node_modules/cradle/node_modules/follow/node_modules/request/main.js:184:10)
at ClientRequest.emit (events.js:67:17)
at Socket. (http.js:1114:11)
at Socket.emit (events.js:67:17)
at Array.0 (net.js:313:25)
at EventEmitter._tickCallback (node.js:192:40)