{"action":"opened","issue":{"url":"https://api.github.com/repos/BBC-News/wraith/issues/580","repository_url":"https://api.github.com/repos/BBC-News/wraith","labels_url":"https://api.github.com/repos/BBC-News/wraith/issues/580/labels{/name}","comments_url":"https://api.github.com/repos/BBC-News/wraith/issues/580/comments","events_url":"https://api.github.com/repos/BBC-News/wraith/issues/580/events","html_url":"https://github.com/BBC-News/wraith/issues/580","id":353853951,"node_id":"MDU6SXNzdWUzNTM4NTM5NTE=","number":580,"title":"Chrome self-signed certificates producing empty images?","user":{"login":"t4k","id":415179,"node_id":"MDQ6VXNlcjQxNTE3OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/415179?v=4","gravatar_id":"","url":"https://api.github.com/users/t4k","html_url":"https://github.com/t4k","followers_url":"https://api.github.com/users/t4k/followers","following_url":"https://api.github.com/users/t4k/following{/other_user}","gists_url":"https://api.github.com/users/t4k/gists{/gist_id}","starred_url":"https://api.github.com/users/t4k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t4k/subscriptions","organizations_url":"https://api.github.com/users/t4k/orgs","repos_url":"https://api.github.com/users/t4k/repos","events_url":"https://api.github.com/users/t4k/events{/privacy}","received_events_url":"https://api.github.com/users/t4k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-24T16:43:42Z","updated_at":"2018-08-24T16:43:42Z","closed_at":null,"author_association":"NONE","body":"My local VM has a self-signed certificate and headless chrome does not work in that case and only produces empty screenshots. Is there any option to pass some kind of parameter to say that self-signed certificates are ok?\r\n\r\nI haven't completely confirmed this is the issue with my empty screenshots, but I think it is a fair assumption. I get the same result running wraith from within the VM and from my host Mac.\r\n\r\nI need to use Chrome because PhantomJS can't render flexbox properly.\r\n\r\n------\r\nReporting a problem? Please describe the issue above, and complete the following checklist so that we can help you more quickly.\r\n\r\n#### Issue checklist:\r\n\r\n- [x] I have validated my config file against [YAML Validator](http://codebeautify.org/yaml-validator) to make sure it is valid YAML.\r\n\r\n- [x] I have run the `wraith info` command and pasted the output below:\r\n\r\n```\r\nDEBUG: #################################################\r\nDEBUG:   Command run:        info\r\nDEBUG:   Wraith version:     4.2.3\r\nDEBUG:   Ruby version:       ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin15]\r\nDEBUG:   ImageMagick:        Version: ImageMagick 6.9.9-50 Q16 x86_64 2018-06-02 https://www.imagemagick.org\r\nDEBUG:   PhantomJS version:  2.1.1\r\nDEBUG:   chromedriver version:  ChromeDriver 2.41.578706 (5f725d1b4f0a4acbf5259df887244095596231db)\r\nDEBUG:   CasperJS version:   1.1.4\r\nDEBUG: #################################################\r\n```\r\n\r\n- [x] I have run the command in verbose mode (by adding `verbose: true` to my config) and pasted the output below:\r\n\r\n```\r\nDEBUG: #################################################\r\nDEBUG:   Command run:        capture configs/vm.yaml\r\nDEBUG:   Wraith version:     4.2.3\r\nDEBUG:   Ruby version:       ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin15]\r\nDEBUG:   ImageMagick:        Version: ImageMagick 6.9.9-50 Q16 x86_64 2018-06-02 https://www.imagemagick.org\r\nDEBUG:   PhantomJS version:  2.1.1\r\nDEBUG:   chromedriver version:  ChromeDriver 2.41.578706 (5f725d1b4f0a4acbf5259df887244095596231db)\r\nDEBUG:   CasperJS version:   1.1.4\r\nDEBUG: #################################################\r\nConfig validated. No serious issues found.\r\nCreating Folders\r\nSAVING IMAGES\r\nCROPPING IMAGES\r\nDEBUG: Cropping both images to 1280x2242. (shots_vm/front/1280_chrome_live_site.png, shots_vm/front/1280_chrome_vm.png)\r\nDEBUG: Cropping both images to 768x3598. (shots_vm/front/768_chrome_live_site.png, shots_vm/front/768_chrome_vm.png)\r\nDEBUG: Cropping both images to 510x4465. (shots_vm/front/320_chrome_live_site.png, shots_vm/front/320_chrome_vm.png)\r\nCOMPARING IMAGES\r\nComparing shots_vm/front/1280_chrome_live_site.png and shots_vm/front/1280_chrome_vm.png\r\nComparing shots_vm/front/320_chrome_live_site.png and shots_vm/front/320_chrome_vm.png\r\nComparing shots_vm/front/768_chrome_live_site.png and shots_vm/front/768_chrome_vm.png\r\nSaved diff\r\nSaved diff\r\nSaved diff\r\nGENERATING THUMBNAILS\r\nGENERATING GALLERY\r\nGallery generated\r\nWARN: Failures detected:\r\nWARN: \t front failed at a resolution of 320 (83.71% diff)\r\nWARN: \t front failed at a resolution of 768 (71.67% diff)\r\nWARN: \t front failed at a resolution of 1280 (52.61% diff)\r\n\r\nView the gallery in your browser:\r\n\t file:///…/shots_vm/gallery.html\r\n```\r\n\r\n- [x] I have pasted the contents of my config file below:\r\n\r\n```\r\nbrowser: \"chrome\"\r\ndomains:\r\n  live_site: \"https://www.example.com\"\r\n  vm:        \"https://local.vm\"\r\npaths:\r\n  front: /\r\nscreen_widths:\r\n  - 320\r\n  - 768\r\n  - 1280\r\nbefore_capture: 'javascript/wait--chrome.js'\r\nresize_or_reload: 'resize'\r\ndirectory: 'shots_vm'\r\nfuzz: '20%'\r\nthreshold: 5\r\ngallery:\r\n  template: 'slideshow_template' # Examples: 'basic_template' (default), 'slideshow_template'\r\n  thumb_width:  200\r\n  thumb_height: 200\r\nmode: diffs_first\r\nverbose: true\r\n```\r\n"}}
{"actor":{"display_login":"t4k"}}