Things I tried for lunch setting let browser = await puppeteer.launch(. It’s basically a browser which you can run from Node.js. Puppeteer runs headless by default, but can be configured to run full (non-headless) Chrome or Chromium. I followed the recommendations that are on puppeteer troubleshoot document but still having the same issue. Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. setDefaultTimeout(0) is to ensure that Puppeteer does not snap out of the page because its taking too much time to load or open. The download path I used was './reports' which downloads the file to a sibling folder on the same level as the file I am running (in the root directory). The './' would download the file as a sibling to the file you are running. Of course we added await because its an asynchronous call and we dont know how long it will take to get a response. kazaff sorry for the late response, missed your comment. (/home/site/(events.js:314:20) at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)Īt onErrorNT (internal/child_process.js:470:16) at processTicksAndRejections (internal/process/task_queues.js:84:21) We instructed Puppeteer to go to the provided URL - WhatsApps URL. Stack: Error: Failed to launch the browser process! home/site/wwwroot/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/chrome DevDocs Puppeteer documentation DevDocs requires JavaScript to run. (experimentally supports python 3. Puppeteer 7.1.0 API documentation with instant search, offline support, keyboard shortcuts, mobile version, and more. Works fine on dev machine but throws below exception when deployed to Azure Functions on the cloud.Įnvironment: on Azure(Node 12, Linux, Consumption plan), Function triggered using service bus topic.Įrror: Result: Failure Exception: Error: Failed to launch the browser process! spawn Free software: MIT license (including the work distributed under the Apache 2.0 license) Documentation: Installation ¶ Pyppeteer requires python 3.6+. Problem: Using puppeteer to get the screengrab of a website.
0 Comments
Leave a Reply. |