node-webshot
node-webshot copied to clipboard
PhantomJS exited with return value 1
I keep getting this error:
Error: PhantomJS exited with return value 1
at ChildProcess.
My code is: `var webshot = require("webshot")
var options = { streamType: "png", windowsSize: { width: 1024, height: 786 }, shotSize: { width: 660, height: 800 }, quality: 90, shotOffset: { left: 180, top: 20 } };
webshot("http://google.com","img/full.png",options, (err) => { if(err){ return console.log(err); } console.log("Image succesfully created"); })`
Whats going on?
you can re-install or downgrade phantomjs-prebuilt
module. it helped me.
Any luck with this @Wector ? I have the exact same problem, however to me it happens only when compiled, not happening when I run the code with node. Thanks!
struggling with the same issue, did you solve the problem @jdvalentini ?
struggling with the same issue, did you solve the problem @jdvalentini ?
Hey @frizurd, Actually I have not, I posted a question in StackOverflow and the single reply helped, but then I kept finding other problems until I gave up. I was trying to migrate a code from an already working program on electron, finally I just stayed with this one.