{"action":"created","issue":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/12750","labels_url":"https://api.github.com/repos/ariya/phantomjs/issues/12750/labels{/name}","comments_url":"https://api.github.com/repos/ariya/phantomjs/issues/12750/comments","events_url":"https://api.github.com/repos/ariya/phantomjs/issues/12750/events","html_url":"https://github.com/ariya/phantomjs/issues/12750","id":49095015,"number":12750,"title":"Operation canceled on some pages","user":{"login":"Guigoz","id":710184,"avatar_url":"https://avatars.githubusercontent.com/u/710184?v=3","gravatar_id":"","url":"https://api.github.com/users/Guigoz","html_url":"https://github.com/Guigoz","followers_url":"https://api.github.com/users/Guigoz/followers","following_url":"https://api.github.com/users/Guigoz/following{/other_user}","gists_url":"https://api.github.com/users/Guigoz/gists{/gist_id}","starred_url":"https://api.github.com/users/Guigoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guigoz/subscriptions","organizations_url":"https://api.github.com/users/Guigoz/orgs","repos_url":"https://api.github.com/users/Guigoz/repos","events_url":"https://api.github.com/users/Guigoz/events{/privacy}","received_events_url":"https://api.github.com/users/Guigoz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-11-17T14:23:16Z","updated_at":"2015-02-05T15:32:03Z","closed_at":null,"body":"Hello,\r\n\r\nI'm experiencing some issues with phantomJS when trying to render some Urls.\r\nIt works well for 99% of the requested urls but some are not working and i'm getting the \"Operation canceled\" error.\r\n\r\nTo reproduce the error you can use this simple script : \r\n\r\n```javascript\r\nvar webPage = require('webpage');\r\nvar page = webPage.create();\r\n\r\npage.viewportSize = { width: 1920, height: 1080 };\r\npage.open(\"http://www.thalesgroup.com\", function start(status) {\r\n  page.render('screenshot.jpeg', {format: 'jpeg', quality: '100'});\r\n  phantom.exit();\r\n});\r\n```\r\n\r\nIt will produce the following result.\r\n\r\n```\r\nphantomjs-1.9.8-linux-x86_64/bin/phantomjs --debug=true --ignore-ssl-errors=yes --web-security=no --ssl-protocol=any simpleRender.js \r\n2014-11-17T15:18:32 [DEBUG] CookieJar - Created but will not store cookies (use option '--cookies-file=<filename>' to enable persisten cookie storage) \r\n2014-11-17T15:18:32 [DEBUG] Phantom - execute: Configuration \r\n2014-11-17T15:18:32 [DEBUG]      0 objectName : \"\" \r\n2014-11-17T15:18:32 [DEBUG]      1 cookiesFile : \"\" \r\n2014-11-17T15:18:32 [DEBUG]      2 diskCacheEnabled : \"false\" \r\n2014-11-17T15:18:32 [DEBUG]      3 maxDiskCacheSize : \"-1\" \r\n2014-11-17T15:18:32 [DEBUG]      4 ignoreSslErrors : \"true\" \r\n2014-11-17T15:18:32 [DEBUG]      5 localToRemoteUrlAccessEnabled : \"false\" \r\n2014-11-17T15:18:32 [DEBUG]      6 outputEncoding : \"UTF-8\" \r\n2014-11-17T15:18:32 [DEBUG]      7 proxyType : \"http\" \r\n2014-11-17T15:18:32 [DEBUG]      8 proxy : \":1080\" \r\n2014-11-17T15:18:32 [DEBUG]      9 proxyAuth : \":\" \r\n2014-11-17T15:18:32 [DEBUG]      10 scriptEncoding : \"UTF-8\" \r\n2014-11-17T15:18:32 [DEBUG]      11 webSecurityEnabled : \"false\" \r\n2014-11-17T15:18:32 [DEBUG]      12 offlineStoragePath : \"\" \r\n2014-11-17T15:18:32 [DEBUG]      13 offlineStorageDefaultQuota : \"-1\" \r\n2014-11-17T15:18:32 [DEBUG]      14 printDebugMessages : \"true\" \r\n2014-11-17T15:18:32 [DEBUG]      15 javascriptCanOpenWindows : \"true\" \r\n2014-11-17T15:18:32 [DEBUG]      16 javascriptCanCloseWindows : \"true\" \r\n2014-11-17T15:18:32 [DEBUG]      17 sslProtocol : \"any\" \r\n2014-11-17T15:18:32 [DEBUG]      18 sslCertificatesPath : \"\" \r\n2014-11-17T15:18:32 [DEBUG]      19 webdriver : \":\" \r\n2014-11-17T15:18:32 [DEBUG]      20 webdriverLogFile : \"\" \r\n2014-11-17T15:18:32 [DEBUG]      21 webdriverLogLevel : \"INFO\" \r\n2014-11-17T15:18:32 [DEBUG]      22 webdriverSeleniumGridHub : \"\" \r\n2014-11-17T15:18:32 [DEBUG] Phantom - execute: Script & Arguments \r\n2014-11-17T15:18:32 [DEBUG]      script: \"simpleRender.js\" \r\n2014-11-17T15:18:32 [DEBUG] Phantom - execute: Starting normal mode \r\n2014-11-17T15:18:32 [DEBUG] WebPage - setupFrame \"\" \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/fs.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/system.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/_coffee-script.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/../coffee-script/package.json\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/../coffee-script/./lib/coffee-script/coffee-script.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/../coffee-script/./lib/coffee-script/./lexer.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/../coffee-script/./lib/coffee-script/././rewriter.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/../coffee-script/./lib/coffee-script/././helpers.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/../coffee-script/./lib/coffee-script/./parser.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/../coffee-script/./lib/coffee-script/./helpers.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/../coffee-script/./lib/coffee-script/./nodes.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/../coffee-script/./lib/coffee-script/././scope.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/../coffee-script/./lib/coffee-script/./././helpers.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/../coffee-script/./lib/coffee-script/././lexer.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/../coffee-script/./lib/coffee-script/./././rewriter.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] FileSystem - _open: \":/modules/webpage.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:32 [DEBUG] WebPage - updateLoadingProgress: 10 \r\n2014-11-17T15:18:35 [DEBUG] WebPage - updateLoadingProgress: 16 \r\n2014-11-17T15:18:35 [DEBUG] WebPage - updateLoadingProgress: 19 \r\n2014-11-17T15:18:35 [DEBUG] WebPage - updateLoadingProgress: 21 \r\n2014-11-17T15:18:35 [DEBUG] WebPage - updateLoadingProgress: 27 \r\n2014-11-17T15:18:35 [DEBUG] WebPage - updateLoadingProgress: 31 \r\n2014-11-17T15:18:35 [DEBUG] WebPage - updateLoadingProgress: 37 \r\n2014-11-17T15:18:35 [DEBUG] WebPage - updateLoadingProgress: 40 \r\n2014-11-17T15:18:35 [DEBUG] WebPage - updateLoadingProgress: 42 \r\n2014-11-17T15:18:35 [DEBUG] WebPage - setupFrame \"\" \r\n2014-11-17T15:18:35 [DEBUG] CookieJar - Saved \"has_js=1; domain=www.thalesgroup.com; path=/\" \r\n2014-11-17T15:18:36 [DEBUG] WebPage - updateLoadingProgress: 45 \r\n2014-11-17T15:18:36 [DEBUG] CookieJar - Saved \"has_js=1; domain=www.thalesgroup.com; path=/\" \r\n2014-11-17T15:18:36 [DEBUG] CookieJar - Saved \"context_breakpoints=none; domain=www.thalesgroup.com; path=/\" \r\n2014-11-17T15:18:36 [DEBUG] WebPage - updateLoadingProgress: 100 \r\n2014-11-17T15:18:36 [DEBUG] Network - Resource request error: 5 ( \"Operation canceled\" ) URL: \"https://secure.leadforensics.com/Track/Capture.aspx?trk_user=26055&trk_sw=1024&trk_sh=768&trk_ref=&trk_tit=Thales Group&trk_loc=https://www.thalesgroup.com/en&trk_agn=Netscape&trk_agv=Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.8 Safari/534.34.lfcd32.lflngfr-FR&trk_dom=www.thalesgroup.com&trk_guid=1e390c06-f5a3-41e8-bc51-d4a46952b54e&trk_cookie=NA\" \r\n2014-11-17T15:18:36 [DEBUG] Network - Resource request error: 5 ( \"Operation canceled\" ) URL: \"https://www.google-analytics.com/analytics.js\" \r\n2014-11-17T15:18:36 [DEBUG] Network - Resource request error: 5 ( \"Operation canceled\" ) URL: \"https://www.thalesgroup.com/sites/default/files/js/js_3gTGsabd1RPSpnBDnrFkHoY_7DsRs04arZaXhxjiyHY.js\" \r\n2014-11-17T15:18:36 [DEBUG] WebPage - updateLoadingProgress: 10 \r\n2014-11-17T15:18:36 [DEBUG] WebPage - setupFrame \"\" \r\n2014-11-17T15:18:36 [DEBUG] FileSystem - _open: \":/modules/fs.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:36 [DEBUG] FileSystem - _open: \":/modules/system.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:36 [DEBUG] FileSystem - _open: \":/modules/_coffee-script.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:36 [DEBUG] FileSystem - _open: \":/modules/webpage.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:36 [DEBUG] WebPage - updateLoadingProgress: 10 \r\n2014-11-17T15:18:36 [DEBUG] WebPage - setupFrame \"\" \r\n2014-11-17T15:18:36 [DEBUG] FileSystem - _open: \":/modules/fs.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:36 [DEBUG] FileSystem - _open: \":/modules/system.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:36 [DEBUG] FileSystem - _open: \":/modules/_coffee-script.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:36 [DEBUG] FileSystem - _open: \":/modules/webpage.js\" QMap((\"mode\", QVariant(QString, \"r\") ) )  \r\n2014-11-17T15:18:36 [DEBUG] WebPage - updateLoadingProgress: 100 \r\n2014-11-17T15:18:36 [DEBUG] WebPage - setupFrame \"\" \r\n2014-11-17T15:18:36 [DEBUG] Network - Resource request error: 5 ( \"Operation canceled\" ) URL: \"https://www.thalesgroup.com/en\" \r\n2014-11-17T15:18:36 [DEBUG] WebPage - updateLoadingProgress: 100 \r\n2014-11-17T15:18:36 [DEBUG] WebPage - updateLoadingProgress: 10 \r\n2014-11-17T15:18:36 [DEBUG] WebPage - setupFrame \"\" \r\n2014-11-17T15:18:36 [DEBUG] WebPage - updateLoadingProgress: 100 \r\n2014-11-17T15:18:36 [DEBUG] WebPage - setupFrame \"\" \r\n2014-11-17T15:18:36 [DEBUG] CookieJar - Purged (session) \"context_breakpoints=none; domain=www.thalesgroup.com; path=/\" \r\n2014-11-17T15:18:36 [DEBUG] CookieJar - Purged (session) \"has_js=1; domain=www.thalesgroup.com; path=/\" \r\n``` \r\n\r\nThanks for your help.\r\nGuillaume."},"comment":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/comments/73065415","html_url":"https://github.com/ariya/phantomjs/issues/12750#issuecomment-73065415","issue_url":"https://api.github.com/repos/ariya/phantomjs/issues/12750","id":73065415,"user":{"login":"vinnitu","id":432168,"avatar_url":"https://avatars.githubusercontent.com/u/432168?v=3","gravatar_id":"","url":"https://api.github.com/users/vinnitu","html_url":"https://github.com/vinnitu","followers_url":"https://api.github.com/users/vinnitu/followers","following_url":"https://api.github.com/users/vinnitu/following{/other_user}","gists_url":"https://api.github.com/users/vinnitu/gists{/gist_id}","starred_url":"https://api.github.com/users/vinnitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinnitu/subscriptions","organizations_url":"https://api.github.com/users/vinnitu/orgs","repos_url":"https://api.github.com/users/vinnitu/repos","events_url":"https://api.github.com/users/vinnitu/events{/privacy}","received_events_url":"https://api.github.com/users/vinnitu/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T15:32:03Z","updated_at":"2015-02-05T15:32:03Z","body":"I cannot understand what is really trouble? I made simple app on qt5 with Qt5.4 and QWebView and my url loaded successfull."}}