phantomjs icon indicating copy to clipboard operation
phantomjs copied to clipboard

Resource request error "Connection closed" in SUSE Linux

Open hoangthau opened this issue 11 years ago • 2 comments

When open url using SSL in Phantomjs( v 1.9.8 ), I face the problem: Resource request error "Connection closed".

OS info: SUSE Linux Enterprise Server 12

The command line like this: phantomjs --ignore-ssl-errors=true --ssl-protocol=any --debug=true rasterize.js https://192.168.70.57:8072/upgrade.html test.png

The detail logs:

2015-03-10T17:59:45 [DEBUG] CookieJar - Created but will not store cookies (use option '--cookies-file=' to enable persisten cookie storage) 2015-03-10T17:59:45 [DEBUG] Phantom - execute: Configuration 2015-03-10T17:59:45 [DEBUG] 0 objectName : "" 2015-03-10T17:59:45 [DEBUG] 1 cookiesFile : "" 2015-03-10T17:59:45 [DEBUG] 2 diskCacheEnabled : "false" 2015-03-10T17:59:45 [DEBUG] 3 maxDiskCacheSize : "-1" 2015-03-10T17:59:45 [DEBUG] 4 ignoreSslErrors : "true" 2015-03-10T17:59:45 [DEBUG] 5 localToRemoteUrlAccessEnabled : "false" 2015-03-10T17:59:45 [DEBUG] 6 outputEncoding : "UTF-8" 2015-03-10T17:59:45 [DEBUG] 7 proxyType : "http" 2015-03-10T17:59:45 [DEBUG] 8 proxy : ":1080" 2015-03-10T17:59:45 [DEBUG] 9 proxyAuth : ":" 2015-03-10T17:59:45 [DEBUG] 10 scriptEncoding : "UTF-8" 2015-03-10T17:59:45 [DEBUG] 11 webSecurityEnabled : "true" 2015-03-10T17:59:45 [DEBUG] 12 offlineStoragePath : "" 2015-03-10T17:59:45 [DEBUG] 13 offlineStorageDefaultQuota : "-1" 2015-03-10T17:59:45 [DEBUG] 14 printDebugMessages : "true" 2015-03-10T17:59:45 [DEBUG] 15 javascriptCanOpenWindows : "true" 2015-03-10T17:59:45 [DEBUG] 16 javascriptCanCloseWindows : "true" 2015-03-10T17:59:45 [DEBUG] 17 sslProtocol : "any" 2015-03-10T17:59:45 [DEBUG] 18 sslCertificatesPath : "" 2015-03-10T17:59:45 [DEBUG] 19 webdriver : ":" 2015-03-10T17:59:45 [DEBUG] 20 webdriverLogFile : "" 2015-03-10T17:59:45 [DEBUG] 21 webdriverLogLevel : "INFO" 2015-03-10T17:59:45 [DEBUG] 22 webdriverSeleniumGridHub : "" 2015-03-10T17:59:45 [DEBUG] Phantom - execute: Script & Arguments 2015-03-10T17:59:45 [DEBUG] script: "rasterize.js" 2015-03-10T17:59:45 [DEBUG] 0 arg: "https://192.168.70.57:8072/upgrade.html" 2015-03-10T17:59:45 [DEBUG] 1 arg: "chick.png" 2015-03-10T17:59:45 [DEBUG] Phantom - execute: Starting normal mode 2015-03-10T17:59:45 [DEBUG] WebPage - setupFrame "" 2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/fs.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/system.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/_coffee-script.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/package.json" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/coffee-script.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/./lexer.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/././rewriter.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/././helpers.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/./parser.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/./helpers.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/./nodes.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/././scope.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/./././helpers.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/././lexer.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/./././rewriter.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/webpage.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] WebPage - updateLoadingProgress: 10 2015-03-10T17:59:45 [DEBUG] Network - Resource request error: 2 ( "Connection closed" ) URL: "https://192.168.70.57:8072/upgrade.html" 2015-03-10T17:59:45 [DEBUG] WebPage - updateLoadingProgress: 100 Unable to load the address! 2015-03-10T17:59:45 [DEBUG] WebPage - setupFrame "" 2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/fs.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/system.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/_coffee-script.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/webpage.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] WebPage - updateLoadingProgress: 10 2015-03-10T17:59:45 [DEBUG] WebPage - setupFrame "" 2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/fs.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/system.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/_coffee-script.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] FileSystem - _open: ":/modules/webpage.js" QMap(("mode", QVariant(QString, "r") ) )
2015-03-10T17:59:45 [DEBUG] WebPage - updateLoadingProgress: 100 2015-03-10T17:59:45 [DEBUG] WebPage - updateLoadingProgress: 10 2015-03-10T17:59:45 [DEBUG] WebPage - updateLoadingProgress: 100 2015-03-10T17:59:45 [DEBUG] WebPage - setupFrame "" 2015-03-10T17:59:45 [DEBUG] WebPage - setupFrame ""

Please help me solve this urgent proplem! Thanks so much.

hoangthau avatar Mar 11 '15 04:03 hoangthau

Thank you for submitting this ticket!

This issue tracker primarily serves as the tool to report and track bugs, defects, and development tasks. For general question, code review request, or other related discussion, please post it to either:

If you have not read it yet, please check also a few tips on Effective Q&A.

ariya avatar Mar 11 '15 16:03 ariya

Thanks @ariya. I 've already posted this ticket in Stack Overflow with phantomjs tag.

hoangthau avatar Mar 12 '15 02:03 hoangthau