javascript - CasperJS (phantom 1.9.7), connection https is not possible since yesterday -
since yesterday, have problem casperjs , 1 site. it's impossible connect server since yesterday. but, script on windows works fine. have error on production server:
2015-04-01t09:46:02 [debug] webpage - updateloadingprogress: 10 2015-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 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
so, in windows (1.9.7) function perfect since yesterday, script on linux doesn't work seen output above.
please try
casperjs --ssl-protocol=any script.js
alternative method: update phantomjs 1.9.8 or higher
you can using
sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs sudo npm install -g casperjs
Comments
Post a Comment