Just installed phantom-proxy from npm. Ran the first example of the readme.md ( the one with waitForSelector ) and got the following result :
body tag present
/node_modules/phantom-proxy/lib/proxy.js:213
endCallback(true);
^
TypeError: undefined is not a function
at Object.self.proxy.end (/node_modules/phantom-proxy/lib/proxy.js:213:25)
at Request.module.exports.end [as _callback] (/node_modules/phantom-proxy/lib/proxy.js:250:50)
at Request.init.self.callback (/node_modules/phantom-proxy/lib/request/main.js:122:22)
at Request.EventEmitter.emit (events.js:99:17)
at Request.<anonymous> (/node_modules/phantom-proxy/lib/request/main.js:655:16)
at Request.EventEmitter.emit (events.js:126:20)
at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (/node_modules/phantom-proxy/lib/request/main.js:617:14)
at IncomingMessage.EventEmitter.emit (events.js:126:20)
at IncomingMessage._emitEnd (http.js:366:10)
at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
Debian Squeeze
Node v0.8.17
PhantomJS 1.8.1
... I was finishing this post when I tried the other waitForSelector example of the readme, which worked fine. I may be wrong but the end() method is called on "proxy" on the first example and I made it worked by changing it to "phantomProxy" just like in the second example. So it looks like a typo in the first one.
Just installed phantom-proxy from npm. Ran the first example of the readme.md ( the one with waitForSelector ) and got the following result :
Debian Squeeze Node v0.8.17 PhantomJS 1.8.1
... I was finishing this post when I tried the other waitForSelector example of the readme, which worked fine. I may be wrong but the end() method is called on "proxy" on the first example and I made it worked by changing it to "phantomProxy" just like in the second example. So it looks like a typo in the first one.
Anyway, thanks for the great module !