![]() ![]() ![]() In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:36178) DeprecationWarning: Unhandled promise rejections are deprecated. To terminate the node process on unhandled promise rejection, use the CLI flag `-unhandled-rejections=strict` (see ). This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with. (node:36178) UnhandledPromiseRejectionWarning: Unhandled promise rejection. To download Microsoft Edge, go to Download Microsoft Edge Insider Channels. Run "PUPPETEER_PRODUCT=firefox npm install" or "PUPPETEER_PRODUCT=firefox yarn install" to download a supported Firefox browser binary.Īt ChromeLauncher.launch (/Users/ethan/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js:86:23)Īt async getArtist (/Users/ethan/Documents/html-js/SoundCloud-Terminal/searchArtist.js:13:21)Īt async /Users/ethan/Documents/html-js/SoundCloud-Terminal/searchArtist.js:57:23 We then navigate to that URL using the page.goto() function.(node:36178) UnhandledPromiseRejectionWarning: Error: Could not find browser revision 800071. We then get the url of the page we want to download the image from the user and stored it in a variable named baseURL. We can now heedlessly control this page from our code. Think of this page as the new page you get after launching your chrome browser. (also tried to setting it to false) Tried puppeteer versions 5.0.0 and 5.4. In that function, we created an instance of a browser page using puppeteer and stored it in the page constant. is:issue is:open When you install Puppeteer, it does not download a recent version of Chromium 6586 Closed opened this issue on 13 comments sharabiania commented on edited I have not set the environment variable to skip the download. First, we created an async function called extractImageLinks. Now let me explain what is happening here. ![]() Enter fullscreen mode Exit fullscreen mode ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |