Open Wector opened 6 years ago
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.
I keep getting this error:
Error: PhantomJS exited with return value 1 at ChildProcess. (C:\xampp\htdocs\cURL\Wish_Module\webshot\node_modules\webshot\lib\webshot.js:249:13)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
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?