question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Page crashed!

See original GitHub issue

Hello,

I’m using yout project, and since yesterday i’m getting this error:

UnhandledPromiseRejectionWarning: Error: Page crashed! at Page._onTargetCrashed (C:\Users\User01\Documents\linkedin-profile-scraper\node_modules\puppeteer\lib\Page.js:213:24) at CDPSession.<anonymous> (C:\Users\User01\Documents\linkedin-profile-scraper\node_modules\puppeteer\lib\Page.js:122:56) at CDPSession.emit (events.js:311:20) at CDPSession._onMessage (C:\Users\User01\Documents\linkedin-profile-scraper\node_modules\puppeteer\lib\Connection.js:200:12) at Connection._onMessage (C:\Users\User01\Documents\linkedin-profile-scraper\node_modules\puppeteer\lib\Connection.js:112:17) at WebSocket.<anonymous> (C:\Users\User01\Documents\linkedin-profile-scraper\node_modules\puppeteer\lib\WebSocketTransport.js:44:24) at WebSocket.onMessage (C:\Users\User01\Documents\linkedin-profile-scraper\node_modules\ws\lib\event-target.js:120:16) at WebSocket.emit (events.js:311:20) at Receiver.receiverOnMessage (C:\Users\User01\Documents\linkedin-profile-scraper\node_modules\ws\lib\websocket.js:789:20) at Receiver.emit (events.js:311:20) (node:2656) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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 .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:2656) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Are you planning to fix this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jvandenaardwegcommented, Apr 1, 2020

Feel free to send in a PR to block these kind of requests that are not needed for LinkedIn to work properly. I believe more could be blocked to speed up the crawling.

You can block requests here: https://github.com/jvandenaardweg/linkedin-profile-scraper/blob/master/scraper/linkedin.js#L49

req.url() has the URL of the resource

0reactions
jvandenaardwegcommented, May 5, 2020

@mrkrisjack i’ve got a PR ready (https://github.com/jvandenaardweg/linkedin-profile-scraper/pull/9) which seems to fix the issue. The problem seemed to be the blocking of stylesheet resources.

Can you pull the changes from the master branch, do a npm install, and then try again?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is "Page crashed!" error? · Issue #1321 - GitHub
Page crashed errors are caused because of certain website animation causing huge stress on the CPU, RAM and GPU. This can be easily...
Read more >
Fix "Aw, Snap!" page crashes and other page loading errors
Fix "Aw, Snap!" page crashes and other page loading errors · Step 1: Check your internet connection. Make sure your phone or tablet...
Read more >
UnhandledPromiseRejectionWar...
I've implemented a try and catch(error) so any front-end crash the automation will refresh and keep running while(true){ try{ await page.
Read more >
UnhandledPromiseRejectionWar...
UnhandledPromiseRejectionWarning: Error: Page crashed! Open, Needs TriagePublic.
Read more >
9 Best Ways to Fix Aw Snap! Page Crash Error in Google ...
9 Best Ways to Fix Aw Snap! Page Crash Error in Google Chrome · 1. Reload Webpage · 2. Disable VPN · 3....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found