TypeError: Object #<Client> has no method 'destroy' #1

Open
ghost opened this Issue Mar 10, 2012 · 0 comments

0 participants

@ghost

$ sudo npm install node.uptime -g
/usr/local/bin/node.uptime -> /usr/local/lib/node_modules/node.uptime/bin/node.uptime
node.uptime@0.1.0 /usr/local/lib/node_modules/node.uptime
└── optimist@0.3.1

$ node.uptime -h github.com -u "echo up" -d "echo down"

/usr/local/lib/node_modules/node.uptime/lib/node.uptime/index.js:54
client.destroy();
^
TypeError: Object # has no method 'destroy'
at IncomingMessage. (/usr/local/lib/node_modules/node.uptime/lib/node.uptime/index.js:54:16)
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:349:27)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment