gpt4 book ai didi

javascript - CasperJS(幻影 1.9.7),从昨天开始无法连接 https

转载 作者:行者123 更新时间:2023-11-30 16:57:54 24 4
gpt4 key购买 nike

从昨天开始,我遇到了 CasperJS 和一个站点的问题。从昨天开始就连不上服务器了。但是,我在 Windows 上的脚本运行良好。我的生产服务器上有这个错误:

2015-04-01T09:46:02 [DEBUG] WebPage - updateLoadingProgress: 102015-04-01T09:46:02 [DEBUG] Network - Resource request error: 2 ( "Connection closed" ) URL: "https://www.mysite.fr/"[error] [phantom] Resource https://www.mysite.fr/ failed to load (null)2015-04-01T09:46:02 [DEBUG] WebPage - updateLoadingProgress: 100

I use:

casperjs --ssl-protocol=tlsv1 --ignore-ssl-errors=yes --web-security=no --debug=yes script.js 

因此,在 Windows (1.9.7) 中功能完美,但从昨天开始,我的 Linux 上的脚本无法正常工作,如上面的输出所示。

最佳答案

请试试

casperjs --ssl-protocol=any script.js

替代方法:更新到 PhantomJS 1.9.8 或更高版本

你可以用

sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo npm install -g casperjs

关于javascript - CasperJS(幻影 1.9.7),从昨天开始无法连接 https,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29385656/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com