1
從昨天起,我遇到了CasperJS和一個站點的問題。從昨天開始連接服務器實際上是不可能的。但是,我在Windows上的腳本工作正常。我有這個錯誤我的生產服務器上:CasperJS(幻影1.9.7),連接https不可能從昨天開始
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 to load (null) 2015-04-01T09:46:02 [DEBUG] WebPage - updateLoadingProgress: 100
我用:
casperjs --ssl-protocol=tlsv1 --ignore-ssl-errors=yes --web-security=no --debug=yes script.js
所以,在窗口(1.9.7),功能完善,但是從昨天起,在我的Linux腳本不作爲工作由上面的輸出可見。
很高興知道目標網站上發生了什麼變化。 – 2015-04-01 08:14:29
是的,對不起,我使用casperjs --ignore-ssl-errors =是--ssl-protocol = tlsv1 服務器沒有任何變化(我們的提供者說) – Manolel 2015-04-01 08:51:34
您使用基於Debian的Linux嗎?如果是,那麼檢查PhantomJS的某些依賴關係是否已更新。依賴關係可以這樣顯示:'ldd/usr/local/bin/phantomjs'和更新日誌在'/ var/log'下,例如:'grep upgrade/var/log/dpkg.log.1'或'grep upgrade /無功/日誌/ dpkg.log'。 – 2015-04-01 09:07:08