resilient-http / resilient.js

Fault tolerant and reactive HTTP client for node.js and browsers
184 stars 13 forks source link

Global binary is throwing error #140

Closed danielsan closed 7 years ago

danielsan commented 7 years ago

Just installing it and trying it with one of the examples throws an error

$ npm i -g resilient
$ resilient http://httpbin.org/user-agent
/home/daniel/.nvm/versions/node/v0.12.18/lib/node_modules/resilient/bin/resilient:111
    } else if (buffer.isBuffer(res.data)) {
                      ^
TypeError: undefined is not a function
    at printToStdout (/home/daniel/.nvm/versions/node/v0.12.18/lib/node_modules/resilient/bin/resilient:111:23)
    at handler (/home/daniel/.nvm/versions/node/v0.12.18/lib/node_modules/resilient/bin/resilient:98:5)
    at finalRequestHandler (/home/daniel/.nvm/versions/node/v0.12.18/lib/node_modules/resilient/lib/client.js:70:5)
    at /home/daniel/.nvm/versions/node/v0.12.18/lib/node_modules/resilient/lib/client.js:102:10
    at Request._callback (/home/daniel/.nvm/versions/node/v0.12.18/lib/node_modules/resilient/lib/http.js:28:5)
    at Request.self.callback (/home/daniel/.nvm/versions/node/v0.12.18/lib/node_modules/resilient/node_modules/request/request.js:188:22)
    at Request.emit (events.js:110:17)
    at Request.<anonymous> (/home/daniel/.nvm/versions/node/v0.12.18/lib/node_modules/resilient/node_modules/request/request.js:1171:10)
    at Request.emit (events.js:107:17)
    at IncomingMessage.<anonymous> (/home/daniel/.nvm/versions/node/v0.12.18/lib/node_modules/resilient/node_modules/request/request.js:1091:12)