You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the error I got when run node horseman.js:
Unhandled rejection Error: Failed to GET url: https://www.google.com/search?site
=&tbm=isch&source=hp&biw=1366&bih=640&q=moon
at checkStatus (D:\PhantomJS\node_modules\node-horseman\lib\actions.js:78:16
)
at PassThroughHandlerContext.finallyHandler (D:\PhantomJS\node_modules\blueb
ird\js\release\finally.js:56:23)
at PassThroughHandlerContext.tryCatcher (D:\PhantomJS\node_modules\bluebird\
js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\PhantomJS\node_modules\bluebird\js\
release\promise.js:502:31)
at Promise._settlePromise (D:\PhantomJS\node_modules\bluebird\js\release\pro
mise.js:559:18)
at Promise._settlePromise0 (D:\PhantomJS\node_modules\bluebird\js\release\pr
omise.js:604:10)
at Promise._settlePromises (D:\PhantomJS\node_modules\bluebird\js\release\pr
omise.js:683:18)
at Promise._fulfill (D:\PhantomJS\node_modules\bluebird\js\release\promise.j
s:628:18)
at D:\PhantomJS\node_modules\bluebird\js\release\nodeback.js:42:21
at D:\PhantomJS\node_modules\node-phantom-simple\node-phantom-simple.js:60:1
8
at IncomingMessage.<anonymous> (D:\PhantomJS\node_modules\node-phantom-simpl
e\node-phantom-simple.js:645:9)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at nextTickCallbackWith2Args (node.js:455:9)
at process._tickCallback (node.js:369:17)
Here is horseman.js:
var Horseman = require('node-horseman');
var horseman = new Horseman();
horseman
.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0')
.open('https://www.google.com/search?site=&tbm=isch&source=hp&biw=1366&bih=640&q=moon')
.screenshot('example.jpg')
.close();
But when I run phantomjs phantom.js it runs normally. Here is phantom.js:
This is the error I got when run
node horseman.js
:Here is horseman.js:
But when I run
phantomjs phantom.js
it runs normally. Here is phantom.js:So I guess the problem from horseman ?
May be it's the same as #182
The text was updated successfully, but these errors were encountered: