在OpenShift上使用phantomjs打开https

在OpenShift上使用phantomjs打开https,phantomjs,openshift,Phantomjs,Openshift,我正在使用OpenShift,并使用下面的代码使用phantomjs打开http url以获取屏幕截图,http工作正常,但HTTPS失败,状态代码为null。我知道这对于openshift来说是一个非常具体的问题,但看起来openshift希望用户现在就提出所有问题 page.open(address, function (status) { if (status !== 'success') { console.log('Unable to load the addr

我正在使用OpenShift,并使用下面的代码使用phantomjs打开http url以获取屏幕截图,http工作正常,但HTTPS失败,状态代码为null。我知道这对于openshift来说是一个非常具体的问题,但看起来openshift希望用户现在就提出所有问题

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);
    }
});

我放弃了在openshift上做这项工作,最终我搬到了heroku,heroku上的代码工作得很好。

你是说如果你尝试在openshift上使用phantomjs加载https地址,它会失败吗?我目前正在使用phantomjs编写一个应用程序。在本地一切正常。我还没有推到openshift。没错,http很好用,但https不行。如果对你有用,请告诉我。目前为止运气好吗?我没有忘记你。这周我一直被跟踪。希望下周我能在openshift上测试,然后再发回来。今天我能把我的应用推到openshift上。我所有的Phantomjs Https都工作得很好。嘿,你在openshift上运行Phantomjs用的是什么类型的装备?虽然我的主要技能是java,但我试着用phantomjs和PHP来截图。虽然这不会有任何区别,因为我上面粘贴的脚本是纯js,您使用的是哪个版本的phantomjs?