browser.newPage() hangs in aws lambda
See original GitHub issueSteps to reproduce
Tell us about your environment:
- Puppeteer version: 0.13.0
- Platform / OS version: amazon linux (aws lambda)
- URLs (if applicable):
What steps will reproduce the problem?
I download the chrome binary built here https://hub.docker.com/r/adieuadieu/headless-chromium-for-aws-lambda/
You can find the code here. https://github.com/voidfiles/lambda-htmltopdf
Roughly
browser = await puppeteer.launch({ args: [ '--no-sandbox', '--disable-setuid-sandbox' ],
executablePath: 'vendor/headless-chromium' });
page = await browser.newPage();
What is the expected result?
I expect the newPage call to finish
What happens instead?
the newPage call hangs
here is the debug output from the logs
START RequestId: 2dda3e10-d737-11e7-b67e-f13ccc488fee Version: $LATEST
2017-12-02 01:02:45.076 (-07:00) 2dda3e10-d737-11e7-b67e-f13ccc488fee Received event: {
"resource": "/{proxy+}",
"path": "/pdf",
"httpMethod": "POST",
"headers": {
"Accept": "application/json",
"Accept-Encoding": "gzip, deflate",
"CloudFront-Forwarded-Proto": "https",
"CloudFront-Is-Desktop-Viewer": "true",
"CloudFront-Is-Mobile-Viewer": "false",
"CloudFront-Is-SmartTV-Viewer": "false",
"CloudFront-Is-Tablet-Viewer": "false",
"CloudFront-Viewer-Country": "US",
"Content-Type": "application/json",
"Host": "vkkobhoqke.execute-api.us-east-1.amazonaws.com",
"User-Agent": "HTTPie/0.9.2",
"Via": "1.1 81871f1c889cc44b6c25e3ef722a3801.cloudfront.net (CloudFront)",
"X-Amz-Cf-Id": "zzDXrA13pDAyHuYiOFGQkXQq_a3CmTnxz0RIe4C2QqFa1_vZNoaVZA==",
"X-Amzn-Trace-Id": "Root=1-5a225e25-5f27fe2519f0947d1be33532",
"X-Forwarded-For": "76.23.20.73, 54.239.203.105",
"X-Forwarded-Port": "443",
"X-Forwarded-Proto": "https"
},
"queryStringParameters": null,
"pathParameters": {
"proxy": "pdf"
},
"stageVariables": null,
"requestContext": {
"requestTime": "02/Dec/2017:08:02:45 +0000",
"path": "/dev/pdf",
"accountId": "140099371219",
"protocol": "HTTP/1.1",
"resourceId": "i1sai8",
"stage": "dev",
"requestTimeEpoch": 1512201765053,
"requestId": "2dda174b-d737-11e7-85a0-899dec80fce8",
"identity": {
"cognitoIdentityPoolId": null,
"accountId": null,
"cognitoIdentityId": null,
"caller": null,
"apiKey": "",
"sourceIp": "76.23.20.73",
"accessKey": null,
"cognitoAuthenticationType": null,
"cognitoAuthenticationProvider": null,
"userArn": null,
"userAgent": "HTTPie/0.9.2",
"user": null
},
"resourcePath": "/{proxy+}",
"httpMethod": "POST",
"apiId": "vkkobhoqke"
},
"body": "<html>\n <head>\n <title>Conservatism and Switcher's Curse</title>\n </head>\n \n <style>@charset \"UTF-8\";\n/* -----------------------------------------------\nPrinceXML CSS PDF Cover Page Stylesheet\nAuthor: Zane Mattingly\nVersion: 2011-02-10\nPLEASE SAVE THIS FILE LOCALLY!\n----------------------------------------------- */\n\n/* Reset */\nhtml,\nbody,\np,\nul,\nli,\nol,\nh1,\nh2,\nh3,\nh4,\ndd,\nem,\nimg {\n border:none;\n font-weight:normal;\n margin:0;\n padding:0;}\n\na {\n text-decoration:none;\n color:inherit;}\n\n/* ************\nUtility Rules\n************ */\n\n.clear {\n clear:both;\n height:0.125in;\n visibility:hidden;}\n\n.left-aligned {\n text-align:left;}\n\n.right-aligned {\n text-align:right;}\n\n.center-aligned {\n text-align:center;}\n\n/* Basic Elements */\nem {\n font-style:italic;}\n\nstrong {\n font-weight:bold;}\n\nimg {\n image-resolution:72dpi;}\n\n/* = Document */\nhtml,\nbody {\n min-height:100%;\n text-align:left;}\n\n@page {\n size: US-Letter;\n margin:1in;\n @top-left {\n border-bottom:solid 1px #B3B4B7;\n content:flow(header);\n vertical-align:bottom;\n }\n\n @bottom-left {\n border-top:solid 1px #B3B4B7;\n content:flow(footer);\n vertical-align:top;}\n }\n\n@page:first {\n size: US-Letter;\n margin:0.8in 1in 1.8in 1in;\n @top-left {\n border-bottom:solid 1px #B3B4B7;\n }\n}\n\n/* Special Unpublished Margin Rules */\n\n@page unpublished {\n margin:1in;\n }\n\n#primary-page.unpublished {\n page: unpublished\n}\n\n/* = Pages */\n.page {\n page-break-before:always;\n}\n\n/* *************\nStructure Rules\n**************** */\n\n/* = Header */\n\n.header, .clear-header {\n flow:static(header);\n padding:0.125in;\n}\n\n/* = Masthead */\n\n#masthead p {\n padding:0 0.125in;\n}\n\n#masthead #headliner {\n display:table;\n height:1in;\n width:6.5in;\n}\n\n#masthead #headliner .alpha {\n display:table-cell;\n padding-left:0.125in;\n vertical-align:bottom;\n}\n\n#masthead #headliner .alpha img {\n max-height:72px;\n max-width:288px;}\n\n#masthead #headliner .beta {\n display:table-cell;\n padding-left:0.125in;\n vertical-align:bottom;\n}\n\n#masthead #banner {\n border-bottom:solid 1px #B3B4B7;\n border-top:solid 1px #B3B4B7;\n display:table;\n height:0.45in;\n margin:0.1in 0;\n padding:0 0.125in;\n width:6.5in;\n}\n\n#masthead #banner a {\n position:relative;\n top:2px;\n}\n\n#masthead #banner .alpha,\n#masthead #banner .beta {\n display:table-cell;\n vertical-align:middle;\n width:50%;\n}\n\n#masthead #banner .omega {\n display:table-cell;\n vertical-align:middle;\n width:100%;\n}\n\n/* = Main */\n\n.main {\n padding:0.125in;\n}\n\n.main h1 {\n margin:0.15in 0;\n}\n\n.main h2 {\n margin:0 0 0.25in;\n}\n\n.main h3,\n.main h5 {\n margin-top:0.15in;\n}\n\n.main h4 {\n margin-top:0.025in;\n}\n\n/* = Note */\n\n#coverpage-note {\n bottom:0;\n padding:0 0.125in;\n position:fixed;\n}\n\n/* = Footer */\n\n.footer,\n.clear-footer {\n flow:static(footer);\n padding:0.125in;\n}\n\n#primary-page .footer #citation {\n margin-bottom:0.25in;\n width:100%;\n}\n\n#primary-page .footer #citation h4 {\n margin-bottom:0.025in;\n}\n\n#primary-page .footer #blurb {\n padding-right:0.125in;\n float:left;\n}\n\n#primary-page .footer #blurb.standard {\n width:3.125in;\n}\n\n#primary-page .footer #blurb.full {\n width:100%;\n white-space: nowrap;\n}\n\n#primary-page .footer #logo {\n width:3in;\n float:left;\n}\n\n#primary-page .footer #logo img {\n float:right;\n max-height:72px;\n max-width:216px;\n}\n\n#secondary-page .footer {\n text-align:right;\n}\n\n/* = Secondary Pages */\n\n#secondary-page p {\n padding:0 0 0.125in ;}\n\n#secondary-page ol,\n#secondary-page ul {\n margin:0 0 .15in .4in;}\n\n#secondary-page #distribution_license img {\n height:15px;\n width:44px;\n display: inline-block;}\n\n/* =====\nStyling\n===== */\n\n/* = Typography */\n\n/* Document */\n\nhtml,\nbody {\n font-family: \"Arno Pro\", serif, \"Unifont\";\n font-size:12pt;\n}\n\n/* Masthead */\n#masthead h2 {\n font-size:18pt;\n}\n\n#masthead h3 {\n font-size:13pt;\n font-weight:bold;\n}\n\n#masthead h4 {\n font-weight:300;\n}\n\n/* Main */\n\n.main {\n font-size:11pt;\n}\n\n.main h1 {\n font-size:24pt;\n line-height:24pt;\n}\n\n.main h2 {\n font-size:21pt;\n}\n\n.main h3 {\n font-size:12pt;\n}\n\n.main h4 {\n font-size:10pt;\n}\n\n.main .authorlist {\n font-size:13pt;\n}\n\n.main .authorlist .author-info {\n font-size:10pt;\n}\n\n.main .authorlist h5 {\n font-size:8pt;\n font-style:italic;\n}\n\n/* Footer */\n\n.cc-license {\n width:88px;\n white-space:nowrap;\n vertical-align:middle;\n margin-right:15px;\n}\n\n.footer #citation p {\n font-size:9pt;\n}\n\n.footer #blurb {\n font-size:6pt;\n line-height:11pt;\n white-space:nowrap;\n}\n\n.posted-info {\n font-size:9pt;\n}\n\n.footer-logo {\n vertical-align: top;\n margin-right:10px;\n font-size:9pt;\n white-space:nowrap;\n}\n\n.posted-info img {\n height:70px;\n}\n\n/* = Colors */\n\na {\n color:#316191;\n}\n\n#masthead #headliner,\n#masthead #banner {\n color:#316191;\n}\n</style>\n \n\n <body>\n <div id=\"primary-page\" class=\"page unbranded\">\n <!-- Footers must be placed at top of document to flow to bottom margin of the first page. -->\n <!-- Because footers are removed from the normal flow, if the length exceeds the margin area they will be cut off! -->\n <div class=\"footer\">\n <p class=\"posted-info\">\n \n <img class=\"footer-logo\" src=\"http://d2yuqbjt73w5dg.cloudfront.net/bepress-opus-master-0000802-4b35895/bepress.png\" alt=\"bepress\" />\n \n \n Available at: <a href=\"https://works.bepress.com/aaron_edlin/90/\">https://works.bepress.com/aaron_edlin/90/</a>\n \n </p>\n </div>\n\n <!-- 'clear-footer' divs prevent previous footer from being repeated on additional pages. -->\n <div class=\"clear-footer\"></div>\n\n <div id=\"masthead\">\n <div id=\"headliner\">\n \n <div class=\"beta left-aligned\">\n \n <h2><strong><a href=\"https://www.law.berkeley.edu/\">Berkeley Law</a></strong></h2>\n \n </div>\n \n </div>\n <div id=\"banner\">\n \n <div class=\"omega left-aligned\">\n <h3><a href=\"https://works.bepress.com/aaron_edlin/\">From the SelectedWorks of Aaron Edlin</a></h3>\n </div>\n \n </div>\n </div>\n\n <div class=\"main\">\n <h3 id=\"article-date\">Winter 2017</h3>\n <p></p><br/>\n <h1 id=\"article-title\">Conservatism and Switcher's Curse</h1>\n <div class=\"authorlist standard\">\n <p>Aaron Edlin<br/></p>\n </div>\n </div>\n\n <div id=\"coverpage-note\">\n \n </div>\n\n </div>\n </body>\n</html>\n",
"isBase64Encoded": false
}
2017-12-02 01:02:45.076 (-07:00) 2dda3e10-d737-11e7-b67e-f13ccc488fee Parsed conf { html: '<html>\n <head>\n <title>Conservatism and Switcher's Curse</title>\n </head>\n \n <style>@charset "UTF-8";\n/* -----------------------------------------------\nPrinceXML CSS PDF Cover Page Stylesheet\nAuthor: Zane Mattingly\nVersion: 2011-02-10\nPLEASE SAVE THIS FILE LOCALLY!\n----------------------------------------------- */\n\n/* Reset */\nhtml,\nbody,\np,\nul,\nli,\nol,\nh1,\nh2,\nh3,\nh4,\ndd,\nem,\nimg {\n border:none;\n font-weight:normal;\n margin:0;\n padding:0;}\n\na {\n text-decoration:none;\n color:inherit;}\n\n/* ************\nUtility Rules\n************ */\n\n.clear {\n clear:both;\n height:0.125in;\n visibility:hidden;}\n\n.left-aligned {\n text-align:left;}\n\n.right-aligned {\n text-align:right;}\n\n.center-aligned {\n text-align:center;}\n\n/* Basic Elements */\nem {\n font-style:italic;}\n\nstrong {\n font-weight:bold;}\n\nimg {\n image-resolution:72dpi;}\n\n/* = Document */\nhtml,\nbody {\n min-height:100%;\n text-align:left;}\n\n@page {\n size: US-Letter;\n margin:1in;\n @top-left {\n border-bottom:solid 1px #B3B4B7;\n content:flow(header);\n vertical-align:bottom;\n }\n\n @bottom-left {\n border-top:solid 1px #B3B4B7;\n content:flow(footer);\n vertical-align:top;}\n }\n\n@page:first {\n size: US-Letter;\n margin:0.8in 1in 1.8in 1in;\n @top-left {\n border-bottom:solid 1px #B3B4B7;\n }\n}\n\n/* Special Unpublished Margin Rules */\n\n@page unpublished {\n margin:1in;\n }\n\n#primary-page.unpublished {\n page: unpublished\n}\n\n/* = Pages */\n.page {\n page-break-before:always;\n}\n\n/* *************\nStructure Rules\n**************** */\n\n/* = Header */\n\n.header, .clear-header {\n flow:static(header);\n padding:0.125in;\n}\n\n/* = Masthead */\n\n#masthead p {\n padding:0 0.125in;\n}\n\n#masthead #headliner {\n display:table;\n height:1in;\n width:6.5in;\n}\n\n#masthead #headliner .alpha {\n display:table-cell;\n padding-left:0.125in;\n vertical-align:bottom;\n}\n\n#masthead #headliner .alpha img {\n max-height:72px;\n max-width:288px;}\n\n#masthead #headliner .beta {\n display:table-cell;\n padding-left:0.125in;\n vertical-align:bottom;\n}\n\n#masthead #banner {\n border-bottom:solid 1px #B3B4B7;\n border-top:solid 1px #B3B4B7;\n display:table;\n height:0.45in;\n margin:0.1in 0;\n padding:0 0.125in;\n width:6.5in;\n}\n\n#masthead #banner a {\n position:relative;\n top:2px;\n}\n\n#masthead #banner .alpha,\n#masthead #banner .beta {\n display:table-cell;\n vertical-align:middle;\n width:50%;\n}\n\n#masthead #banner .omega {\n display:table-cell;\n vertical-align:middle;\n width:100%;\n}\n\n/* = Main */\n\n.main {\n padding:0.125in;\n}\n\n.main h1 {\n margin:0.15in 0;\n}\n\n.main h2 {\n margin:0 0 0.25in;\n}\n\n.main h3,\n.main h5 {\n margin-top:0.15in;\n}\n\n.main h4 {\n margin-top:0.025in;\n}\n\n/* = Note */\n\n#coverpage-note {\n bottom:0;\n padding:0 0.125in;\n position:fixed;\n}\n\n/* = Footer */\n\n.footer,\n.clear-footer {\n flow:static(footer);\n padding:0.125in;\n}\n\n#primary-page .footer #citation {\n margin-bottom:0.25in;\n width:100%;\n}\n\n#primary-page .footer #citation h4 {\n margin-bottom:0.025in;\n}\n\n#primary-page .footer #blurb {\n padding-right:0.125in;\n float:left;\n}\n\n#primary-page .footer #blurb.standard {\n width:3.125in;\n}\n\n#primary-page .footer #blurb.full {\n width:100%;\n white-space: nowrap;\n}\n\n#primary-page .footer #logo {\n width:3in;\n float:left;\n}\n\n#primary-page .footer #logo img {\n float:right;\n max-height:72px;\n max-width:216px;\n}\n\n#secondary-page .footer {\n text-align:right;\n}\n\n/* = Secondary Pages */\n\n#secondary-page p {\n padding:0 0 0.125in ;}\n\n#secondary-page ol,\n#secondary-page ul {\n margin:0 0 .15in .4in;}\n\n#secondary-page #distribution_license img {\n height:15px;\n width:44px;\n display: inline-block;}\n\n/* =====\nStyling\n===== */\n\n/* = Typography */\n\n/* Document */\n\nhtml,\nbody {\n font-family: "Arno Pro", serif, "Unifont";\n font-size:12pt;\n}\n\n/* Masthead */\n#masthead h2 {\n font-size:18pt;\n}\n\n#masthead h3 {\n font-size:13pt;\n font-weight:bold;\n}\n\n#masthead h4 {\n font-weight:300;\n}\n\n/* Main */\n\n.main {\n font-size:11pt;\n}\n\n.main h1 {\n font-size:24pt;\n line-height:24pt;\n}\n\n.main h2 {\n font-size:21pt;\n}\n\n.main h3 {\n font-size:12pt;\n}\n\n.main h4 {\n font-size:10pt;\n}\n\n.main .authorlist {\n font-size:13pt;\n}\n\n.main .authorlist .author-info {\n font-size:10pt;\n}\n\n.main .authorlist h5 {\n font-size:8pt;\n font-style:italic;\n}\n\n/* Footer */\n\n.cc-license {\n width:88px;\n white-space:nowrap;\n vertical-align:middle;\n margin-right:15px;\n}\n\n.footer #citation p {\n font-size:9pt;\n}\n\n.footer #blurb {\n font-size:6pt;\n line-height:11pt;\n white-space:nowrap;\n}\n\n.posted-info {\n font-size:9pt;\n}\n\n.footer-logo {\n vertical-align: top;\n margin-right:10px;\n font-size:9pt;\n white-space:nowrap;\n}\n\n.posted-info img {\n height:70px;\n}\n\n/* = Colors */\n\na {\n color:#316191;\n}\n\n#masthead #headliner,\n#masthead #banner {\n color:#316191;\n}\n</style>\n \n\n <body>\n <div id="primary-page" class="page unbranded">\n <!-- Footers must be placed at top of document to flow to bottom margin of the first page. -->\n <!-- Because footers are removed from the normal flow, if the length exceeds the margin area they will be cut off! -->\n <div class="footer">\n <p class="posted-info">\n \n <img class="footer-logo" src="http://d2yuqbjt73w5dg.cloudfront.net/bepress-opus-master-0000802-4b35895/bepress.png" alt="bepress" />\n \n \n Available at: <a href="https://works.bepress.com/aaron_edlin/90/">https://works.bepress.com/aaron_edlin/90/</a>\n \n </p>\n </div>\n\n <!-- \'clear-footer\' divs prevent previous footer from being repeated on additional pages. -->\n <div class="clear-footer"></div>\n\n <div id="masthead">\n <div id="headliner">\n \n <div class="beta left-aligned">\n \n <h2><strong><a href="https://www.law.berkeley.edu/">Berkeley Law</a></strong></h2>\n \n </div>\n \n </div>\n <div id="banner">\n \n <div class="omega left-aligned">\n <h3><a href="https://works.bepress.com/aaron_edlin/">From the SelectedWorks of Aaron Edlin</a></h3>\n </div>\n \n </div>\n </div>\n\n <div class="main">\n <h3 id="article-date">Winter 2017</h3>\n <p></p><br/>\n <h1 id="article-title">Conservatism and Switcher's Curse</h1>\n <div class="authorlist standard">\n <p>Aaron Edlin<br/></p>\n </div>\n </div>\n\n <div id="coverpage-note">\n \n </div>\n\n </div>\n </body>\n</html>\n' }
2017-12-02 01:02:45.080 (-07:00) 2dda3e10-d737-11e7-b67e-f13ccc488fee generatePDF start
2017-12-02 01:02:45.080 (-07:00) 2dda3e10-d737-11e7-b67e-f13ccc488fee Launching a browser with conf { args: [ '--no-sandbox', '--disable-setuid-sandbox' ],
executablePath: 'vendor/headless-chromium' }
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol SEND ► {"id":1,"method":"Target.setDiscoverTargets","params":{"discover":true}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"(D014A1DBF700B785C76B558FF1D62A7D)","type":"page","title":"","url":"about:blank","attached":false}}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"244c9af7-81d2-447b-9d10-2c2b210b7793","type":"browser","title":"","url":"","attached":true}}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"38d58d0b-7da0-488b-8250-2270ba4cc7ec","type":"browser","title":"","url":"","attached":false}}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol ◀ RECV {"id":1,"result":{}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:browser browser.version()
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol SEND ► {"id":2,"method":"Browser.getVersion","params":{}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol ◀ RECV {"id":2,"result":{"protocolVersion":"1.2","product":"HeadlessChrome/64.0.3278.0","revision":"@ac4ac7922eb3c99c00c8ae579a730d49d89043f7","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/64.0.3278.0 Safari/537.36","jsVersion":"6.4.370"}}
2017-12-02 01:02:45.784 (-07:00) 2dda3e10-d737-11e7-b67e-f13ccc488fee Launched browser HeadlessChrome/64.0.3278.0
2017-12-02 01:02:45.784 (-07:00) 2dda3e10-d737-11e7-b67e-f13ccc488fee loaded browser, getting page
2017-12-02 01:02:45.784 (-07:00) 2dda3e10-d737-11e7-b67e-f13ccc488fee get a page
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:browser browser.newPage()
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol SEND ► {"id":3,"method":"Target.createTarget","params":{"url":"about:blank"}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"(83E172B7CE3F5BC3C4353DD332A5F8)","type":"page","title":"","url":"","attached":false}}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol ◀ RECV {"id":3,"result":{"targetId":"(83E172B7CE3F5BC3C4353DD332A5F8)"}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol ◀ RECV {"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"(83E172B7CE3F5BC3C4353DD332A5F8)","type":"page","title":"","url":"about:blank","attached":false}}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:target target.page()
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol SEND ► {"id":4,"method":"Target.attachToTarget","params":{"targetId":"(83E172B7CE3F5BC3C4353DD332A5F8)"}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol ◀ RECV {"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"(83E172B7CE3F5BC3C4353DD332A5F8)","type":"page","title":"","url":"about:blank","attached":true}}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol ◀ RECV {"method":"Target.attachedToTarget","params":{"sessionId":"(83E172B7CE3F5BC3C4353DD332A5F8):1","targetInfo":{"targetId":"(83E172B7CE3F5BC3C4353DD332A5F8)","type":"page","title":"","url":"about:blank","attached":true},"waitingForDebugger":false}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol ◀ RECV {"id":4,"result":{"sessionId":"(83E172B7CE3F5BC3C4353DD332A5F8):1"}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:session SEND ► {"id":1,"method":"Page.enable","params":{}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol SEND ► {"id":5,"method":"Target.sendMessageToTarget","params":{"sessionId":"(83E172B7CE3F5BC3C4353DD332A5F8):1","message":"{\"id\":1,\"method\":\"Page.enable\",\"params\":{}}"}}
Sat, 02 Dec 2017 08:02:45 GMT puppeteer:protocol ◀ RECV {"id":5,"result":{}}
END RequestId: 2dda3e10-d737-11e7-b67e-f13ccc488fee
REPORT RequestId: 2dda3e10-d737-11e7-b67e-f13ccc488fee Duration: 30030.30 ms Billed Duration: 30000 ms Memory Size: 2048 MB Max Memory Used: 48 MB
2017-12-02T08:03:15.096Z 2dda3e10-d737-11e7-b67e-f13ccc488fee Task timed out after 30.03 seconds
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
browser.newPage() hangs in aws lambda · Issue #1523 - GitHub
Puppeteer version: 0.13.0; Platform / OS version: amazon linux (aws lambda); URLs (if applicable):. What steps will reproduce the problem?
Read more >chrome-aws-lambda Amazon linux 2 getting Error
Since upgrading I have been unable to get past the error: socket hang up issue. Version sets. Node v10.18.1; chrome-aws-lambda 2.0.2; puppeteer ...
Read more >Troubleshoot networking issues in Lambda
Network connectivity errors can result from issues with your VPC's routing configuration, security group rules, AWS Identity and Access Management (IAM) role ...
Read more >How to use the chrome-aws-lambda.headless function in ...
launch({ args: chrome.args, executablePath: await chrome.executablePath, headless: chrome.headless }) const page = await browser.newPage() await page.setContent ...
Read more >"Error: Socket hang up" on deployed function - Support
Chrome-aws-lambda version: 10.1.0. I have a PDF function with its code here on my GitHub . This runs fine in Netlify dev but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gregorym make sure you launch chrome with
--single-process
:Looking at your log files it seems like debugging target never responds to the debugging client.
Page.enable
is sent, but noTarget.receivedMessageFromTarget
message afterwards (which is required)This argument is set in the start-kit, which you have referenced, for the same reason. Advice comes from this thread. I verified it in lambda environment, and can see that puppeteer works as expected there.
@anvaka’s suggestion using
--single-process
has worked for me on lambda