I gave up on making this work on openshift and eventually I just moved to heroku and the same code on heroku worked like charm.
Opening https with phantomjs on OpenShift
Pregunta
I am using OpenShift, and using following code to open http url with phantomjs (in order to take screenshot), http works fine but HTTPS fails with status code null. I know this is very specific question and problem for openshift but looks like openshift want users to ask all questions on SO now.
page.open(address, function (status) {
if (status !== 'success') {
console.log('Unable to load the address!');
phantom.exit();
} else {
window.setTimeout(function () {
page.render(output);
phantom.exit();
}, 200);
}
});
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow