Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhantomJS exited with return value 1 #225

Open
Wector opened this issue Jan 25, 2018 · 4 comments
Open

PhantomJS exited with return value 1 #225

Wector opened this issue Jan 25, 2018 · 4 comments

Comments

@Wector
Copy link

Wector commented Jan 25, 2018

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?

@blurfx
Copy link

blurfx commented Apr 19, 2018

you can re-install or downgrade phantomjs-prebuilt module. it helped me.

@jdvalentini
Copy link

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!

@frizurd
Copy link

frizurd commented Dec 3, 2018

struggling with the same issue, did you solve the problem @jdvalentini ?

@jdvalentini
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants