vbauer / manet

Website screenshot service powered by Node.js, SlimerJS and PhantomJS
MIT License
575 stars 102 forks source link

Failed to create some screenshots for https #15

Closed slotix closed 9 years ago

slotix commented 9 years ago

For example, please have a look at the following link https://manet.herokuapp.com/?url=https%3A%2F%2Fforums.mozilla.org%2Findex.php&format=jpg&force=true

Though it works ok for https://manet.herokuapp.com/?url=https%3A%2F%2Fmicrosoft.com&format=jpg&force=true

How to forcefully switch off certificate check when making request to resource ?

vbauer commented 9 years ago

I've just tried to reproduce this ticket locally and it works fine for me.

Have you tried to:

?

slotix commented 9 years ago

When I change engine to slimerjs on my dev OSX it works perfectly. But I didn't find the way to make slimerjs workable on hosting CentOS 5. Though it doesn't throw any errors. Screenshots are not generated both for http and https web sites. Probably the problem is the absence of correct xvfb-run file after xvfb installation. I've got xvfb-run.sh file somewhere and put to the system manually.

slotix commented 9 years ago

Solved: Just change commands for starting phantomjs to something like phantomjs": { "linux": "phantomjs --ignore-ssl-errors=yes --ssl-protocol=any",.... in config/default.json

vbauer commented 9 years ago

Great. :)