Phantom js不会打开任何页面

时间:2016-04-11 20:10:42

标签: phantomjs

我试图让Phantom JS加载一个页面,但无论如何,它都会响应"操作被取消:(我已经尝试了各种版本设置,忽略了ssl和各种网站。但两者都不起作用。

我可以使用普通浏览器访问所有网站,并从完全更新的mac osx本地运行PhantomJS

./phantomjs --ignore-ssl-errors=true --ignore-ssl-errors=yes --ssl-protocol=tlsv1 ../../index.js http://askbar.dk

yelds

= onNavigationRequested
destination_url: http://askbar.dk/
type (cause): Other
will navigate: true
from page's main frame: true
= onResourceRequested()
request: {
"headers": [
    {
        "name": "Accept",
        "value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
    },
    {
        "name": "User-Agent",
        "value": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
    }
],
"id": 1,
"method": "GET",
"time": "2016-04-11T20:05:39.998Z",
"url": "http://askbar.dk/"
}
= onNavigationRequested
  destination_url: about:blank
  type (cause): Other
  will navigate: true
  from page's main frame: true 
  http://askbar.dk/: Operation canceled

phantomjs://code/index.js:60 in onResourceError
= onResourceReceived()
  id: 1, stage: "end", response: {"contentType":null,"headers":[],"id":1,"redirectURL":null,"stage":"end","status":null,"statusText":null,"time":"2016-04-11T20:05:39.999Z","url":"http://askbar.dk/"}

有什么想法吗?

0 个答案:

没有答案