johntitus / node-horseman

Run PhantomJS from Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HeadlessError error

antonymca opened this issue · comments

Hi,

I am getting the following error. Any idea why i receive this error.

phantomJS version : 2.1.1
node version : v6.9.5
ENV : MAC OS Sierra version 10.12.3

DEBUG=horseman BLUEBIRD_DEBUG=1 node app.js
horseman using PhantomJS from $PATH +0ms
horseman .setup() creating phantom instance 1 +341ms
App listening on port 3005!
horseman phantom created +906ms
{ HeadlessError: Request() error evaluating getProperty() call: Error: connect ECONNREFUSED ::1:49341
at ClientRequest. (../node_modules/node-phantom-simple/node-phantom-simple.js:506:18)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (_http_client.js:310:9)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1278:8)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
From previous event:
at prepare (../node_modules/node-horseman/lib/index.js:53:9)
at new Horseman (../node_modules/node-horseman/lib/index.js:161:15)
at processPage (../process/processPage.js:11:20)
at successCallback (../app.js:168:3)
at /../app.js:223:11
at /node_modules/async/dist/async.js:3853:24
at eachOfArrayLike (/node_modules/async/dist/async.js:1003:9)
at eachOf /node_modules/async/dist/async.js:1051:5)
at _parallel (/node_modules/async/dist/async.js:3852:5)
at Object.parallelLimit [as parallel] (/node_modules/async/dist/async.js:3935:5)
at startBatch (/app.js:228:4)
at Object. (/app.js:232:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
name: 'HeadlessError',
message: 'Request() error evaluating getProperty() call: Error: connect ECONNREFUSED ::1:49341' }
horseman .close(). +240ms