{"action":"opened","issue":{"url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/3377","repository_url":"https://api.github.com/repos/GoogleChrome/puppeteer","labels_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/3377/labels{/name}","comments_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/3377/comments","events_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/3377/events","html_url":"https://github.com/GoogleChrome/puppeteer/issues/3377","id":368055631,"node_id":"MDU6SXNzdWUzNjgwNTU2MzE=","number":3377,"title":"page.screenshot not working properly, it gets stuck and never takes the screenshot of the webpage","user":{"login":"rohankap","id":6228100,"node_id":"MDQ6VXNlcjYyMjgxMDA=","avatar_url":"https://avatars2.githubusercontent.com/u/6228100?v=4","gravatar_id":"","url":"https://api.github.com/users/rohankap","html_url":"https://github.com/rohankap","followers_url":"https://api.github.com/users/rohankap/followers","following_url":"https://api.github.com/users/rohankap/following{/other_user}","gists_url":"https://api.github.com/users/rohankap/gists{/gist_id}","starred_url":"https://api.github.com/users/rohankap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohankap/subscriptions","organizations_url":"https://api.github.com/users/rohankap/orgs","repos_url":"https://api.github.com/users/rohankap/repos","events_url":"https://api.github.com/users/rohankap/events{/privacy}","received_events_url":"https://api.github.com/users/rohankap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-09T06:16:11Z","updated_at":"2018-10-09T06:16:11Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nSTEP 1: Are you in the right place?\r\n\r\n- For general technical questions or \"how to\" guidance, please search StackOverflow for questions tagged \"puppeteer\" or create a new post.\r\n\r\nhttps://stackoverflow.com/questions/tagged/puppeteer\r\n\r\n- For issues or feature requests related to the DevTools Protocol (https://chromedevtools.github.io/devtools-protocol/), file an issue there:\r\n\r\nhttps://github.com/ChromeDevTools/devtools-protocol/issues/new.\r\n\r\n- Problem in Headless Chrome? File an issue against Chromium's issue tracker:\r\n\r\nhttps://bugs.chromium.org/p/chromium/issues/entry?components=Internals%3EHeadless&blocking=705916\r\n\r\nFor issues, feature requests, or setup troubles with Puppeteer, file an issue right here!\r\n-->\r\n\r\n### Steps to reproduce\r\n\r\n**Tell us about your environment:**\r\n\r\n* Puppeteer version: 1.9.0\r\n* Platform / OS version: win 10 64 bit\r\n* URLs (if applicable): www.fondu.com\r\n* Node.js version: 8.10.0\r\n\r\n**What steps will reproduce the problem?**\r\nPlease execute the below code to reproduce this issue, I am trying to take the screenshot of this website but page.screenshot got stuck and it never takes the web page screenshot.\r\n\r\n_Please include code that reproduces the issue._\r\n```\r\n\r\n\r\nvar puppeteer = require('puppeteer');\r\nvar browser, page;\r\n\r\n\r\nasync function capture(url) {\r\n    //console.log(url +': Started');\r\n    console.time(url);\r\n    try {\r\n        await page.goto('http://'+url, {\r\n            waitUntil: ['load', 'domcontentloaded', 'networkidle2'],\r\n            timeout: 30000\r\n        });\r\n    } catch (e) {\r\n        console.log(e.toString());\r\n    }\r\n    await page.screenshot({path: url+'_headless.jpg',fullPage: false});\r\n    console.timeEnd(url);\r\n\r\n}\r\n\r\nasync function test() {\r\n  browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox'],headless:false});\r\n  page = await browser.newPage();\r\n  page.setViewport({ width: 1366, height: 768 }); //my laptops screen\r\n  await capture('www.fondu.com');\r\n  browser.close()\r\n}\r\n\r\ntest();\r\n```\r\n\r\n\r\n**What is the expected result?**\r\nIt should take the screenshot of the webpage and save it locally\r\n\r\n**What happens instead?**\r\npage.screenshot got stuck and it never completes due to which whole script goes to idle state and it never gets completed.\r\n"}}
{"actor":{"display_login":"rohankap"}}