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.

Running with headless Chrome crashes when provided with non-existent url.

See original GitHub issue

Provide the steps to reproduce

  1. lighthouse https://not-a-url.com --chrome-flags=--headless

What is the current behavior?

events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TCP.onStreamRead (internal/stream_base_commons.js:111:27)
Emitted 'error' event at:
    at Socket.socketErrorListener (_http_client.js:391:9)
    at Socket.emit (events.js:182:13)
    at emitErrorNT (internal/streams/destroy.js:82:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)

No report is saved.

What is the expected behavior?

Runner:warn ... encountered an error: DNS_FAILURE

Report should save with following error:

There were issues affecting this run of Lighthouse:
  DNS servers could not resolve the provided domain.

Environment Information

  • Affected Channels: CLI
  • Lighthouse version: 4.2.0
  • Node.js version: 6.9.0
  • Operating System: Debian GNU/Linux

Related issues

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickhulcecommented, Apr 16, 2019

a fix is up at #8340 if y’all want to check out the details of what happens in each environment now.

0reactions
benschwarzcommented, Apr 17, 2019

Thanks @patrickhulce, we’ll check it out and report back. 🥇

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why headless chrome crashes [duplicate] - Stack Overflow
Whenever I try to run the script on my centOS or Ubunto server the script crashes after a few minutes. from selenium import...
Read more >
headless chrome & aws lambda - Google Groups
Good news: it's possible to successfully run headless Chrome in Lambda! The ERR_INSUFFICIENT_RESOURCES is indeed related to Chrome trying to use ...
Read more >
Fix Chrome if it crashes or won't open - Computer
To fix: Open More More and then Settings. At the bottom, click Advanced and then System. Turn off Use hardware acceleration when available....
Read more >
Common Error Messages | Sauce Labs Documentation
Failed to Download Mobile Application​. Description. The capabilities you've supplied include a URL to a mobile app to install and test. This ...
Read more >
Get Started with Headless Chrome and Puppeteer - YouTube
Check out this tutorial how to use headless Chrome and Puppeteer to automatically scrape Craigslist.org and turn that data into a JSON API!...
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