lighthouse-ci icon indicating copy to clipboard operation
lighthouse-ci copied to clipboard

Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests.

Open akqaaditya opened this issue 2 years ago • 3 comments
trafficstars

Started a web server with "npm run start"... 06:29:05 WARNING: Timed out waiting for the server to start listening. 06:29:05 Ensure the server prints a pattern that matches /listen|ready/i when it is ready. 06:29:05 Running Lighthouse 1 time(s) on https://qa-pub-iwc.akqa.technology/us/en/home.html 06:30:56 Run #1...failed! 06:31:07 Error: Lighthouse failed with exit code 1 06:31:07 at ChildProcess. (/usr/lib/node_modules/@lhci/cli/src/collect/node-runner.js:120:21) 06:31:07 at ChildProcess.emit (node:events:513:28) 06:31:07 at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12) 06:31:07 { 06:31:07 "lighthouseVersion": "9.3.0", 06:31:07 "requestedUrl": "https:/google.com", 06:31:07 "finalUrl": "https://google.com", 06:31:07 "fetchTime": "2022-12-21T06:29:08.671Z", 06:31:07 "gatherMode": "navigation", 06:31:07 "runtimeError": { 06:31:07 "code": "FAILED_DOCUMENT_REQUEST", 06:31:07 "message": "Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Details: net::ERR_CERT_DATE_INVALID)" 06:31:07 }, 06:31:07 "runWarnings": [ 06:31:07 **"Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Details: net::ERR_CERT_DATE_INVALID)" 06:31:07 ], 06:31:07 "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/107.0.5304.110 Safari/537.36", 06:31:07 "environment": { 06:31:07 "networkUserAgent": "", 06:31:07 "hostUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/107.0.5304.110 Safari/537.36", 06:31:07
06:31:07 "benchmarkIndex": 722.5, 06:31:07 "credits": {}

akqaaditya avatar Dec 21 '22 06:12 akqaaditya

Blocked here for so long below is my script help needed please module.exports = { ci: {

    collect: {
      
        url: ['https://google.com'],
        startServerCommand: 'npm run start',
        numberOfRuns:'1',


        settings: {
            chromeFlags: ['--headless','--allow-insecure-localhost','--ignore-certificate-errors','--disable-gpu','--no-sandbox','--disable-setuid-sandbox','--no-check-certificate'],
            preset: 'desktop',

akqaaditya avatar Dec 21 '22 07:12 akqaaditya

We are also having this issue on our CircleCI task for lighthouse.

KempfCreative avatar Jan 03 '23 20:01 KempfCreative

Does anyone know how to fix this?

AhmedBaset avatar Oct 28 '23 00:10 AhmedBaset