lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Lighthouse returned error: Failed document request

Open Blogendeon opened this issue 3 years ago • 4 comments

FAQ

  • [X] Yes, my issue is not about variability or throttling.
  • [X] Yes, my issue is not about a specific accessibility audit (file with axe-core instead).

URL

https://jaccountants.co.uk

What happened?

image

This is the error that I receive.

What did you expect?

I expected Lighthouse to scan my page successfully.

What have you tried?

No response

How were you running Lighthouse?

Other

Lighthouse Version

9.0 I think

Chrome Version

No response

Node Version

No response

OS

No response

Relevant log output

No response

Blogendeon avatar Jan 12 '22 15:01 Blogendeon

Lighthouse runs fine for me on the URL you provided. The report viewer doesn't run Lighthouse, it just renders the report.

Can you provide specific reproduction steps to get this error?

adamraine avatar Jan 12 '22 16:01 adamraine

Error is from PSI. https://googlechrome.github.io/lighthouse/viewer/?psiurl=https://jaccountants.co.uk/ Happened first time I tried.

Devtools logs aren't very useful. Never get a response on the protocol. just "Network.loadingFailed"

{
  "pageLoadError-defaultPass": [
    {
      "method": "Page.lifecycleEvent",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "loaderId": "F0F845A45140AC8F01E088493B1C8C37",
        "name": "commit",
        "timestamp": 353400.415329
      }
    },
    {
      "method": "Page.lifecycleEvent",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "loaderId": "F0F845A45140AC8F01E088493B1C8C37",
        "name": "DOMContentLoaded",
        "timestamp": 353400.415447
      }
    },
    {
      "method": "Page.lifecycleEvent",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "loaderId": "F0F845A45140AC8F01E088493B1C8C37",
        "name": "load",
        "timestamp": 353400.415851
      }
    },
    {
      "method": "Page.lifecycleEvent",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "loaderId": "F0F845A45140AC8F01E088493B1C8C37",
        "name": "networkAlmostIdle",
        "timestamp": 353400.416534
      }
    },
    {
      "method": "Page.lifecycleEvent",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "loaderId": "F0F845A45140AC8F01E088493B1C8C37",
        "name": "networkIdle",
        "timestamp": 353400.416534
      }
    },
    {
      "method": "Network.requestWillBeSent",
      "params": {
        "requestId": "7A8FBEBB5973477E6C52E867281079A4",
        "loaderId": "7A8FBEBB5973477E6C52E867281079A4",
        "documentURL": "https://jaccountants.co.uk/",
        "request": {
          "url": "https://jaccountants.co.uk/",
          "method": "GET",
          "headers": {
            "Upgrade-Insecure-Requests": "1",
            "User-Agent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4695.0 Mobile Safari/537.36 Chrome-Lighthouse",
            "Accept-Language": "en-US"
          },
          "mixedContentType": "none",
          "initialPriority": "VeryHigh",
          "referrerPolicy": "strict-origin-when-cross-origin",
          "isSameSite": true
        },
        "timestamp": 353400.519507,
        "wallTime": 1642009471.814736,
        "initiator": {
          "type": "other"
        },
        "type": "Document",
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "hasUserGesture": false
      }
    },
    {
      "method": "Page.lifecycleEvent",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "loaderId": "F0F845A45140AC8F01E088493B1C8C37",
        "name": "networkAlmostIdle",
        "timestamp": 353400.416534
      }
    },
    {
      "method": "Page.lifecycleEvent",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "loaderId": "F0F845A45140AC8F01E088493B1C8C37",
        "name": "networkIdle",
        "timestamp": 353400.416534
      }
    },
    {
      "method": "Network.loadingFailed",
      "params": {
        "requestId": "7A8FBEBB5973477E6C52E867281079A4",
        "timestamp": 353401.315752,
        "type": "Document",
        "errorText": "net::ERR_CONNECTION_FAILED",
        "canceled": false
      }
    },
    {
      "method": "Page.frameStartedLoading",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580"
      }
    },
    {
      "method": "Page.lifecycleEvent",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "loaderId": "07BC042EEB259CABE826931EE97BDB59",
        "name": "init",
        "timestamp": 353401.343624
      }
    },
    {
      "method": "Page.frameNavigated",
      "params": {
        "frame": {
          "id": "05B710B19D8195A7153DDEB2B8948580",
          "loaderId": "07BC042EEB259CABE826931EE97BDB59",
          "url": "chrome-error://chromewebdata/",
          "domainAndRegistry": "",
          "securityOrigin": "://",
          "mimeType": "text/html",
          "unreachableUrl": "https://jaccountants.co.uk/",
          "adFrameStatus": {
            "adFrameType": "none"
          },
          "secureContextType": "InsecureScheme",
          "crossOriginIsolatedContextType": "NotIsolated",
          "gatedAPIFeatures": []
        },
        "type": "Navigation"
      }
    },
    {
      "method": "Network.loadingFinished",
      "params": {
        "requestId": "07BC042EEB259CABE826931EE97BDB59",
        "timestamp": 353401.355857,
        "encodedDataLength": 0,
        "shouldReportCorbBlocking": false
      }
    },
    {
      "method": "Page.loadEventFired",
      "params": {
        "timestamp": 353401.360662
      }
    },
    {
      "method": "Page.lifecycleEvent",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "loaderId": "07BC042EEB259CABE826931EE97BDB59",
        "name": "load",
        "timestamp": 353401.360662
      }
    },
    {
      "method": "Page.frameStoppedLoading",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580"
      }
    },
    {
      "method": "Page.domContentEventFired",
      "params": {
        "timestamp": 353401.361784
      }
    },
    {
      "method": "Page.lifecycleEvent",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "loaderId": "07BC042EEB259CABE826931EE97BDB59",
        "name": "DOMContentLoaded",
        "timestamp": 353401.361784
      }
    },
    {
      "method": "Page.lifecycleEvent",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "loaderId": "07BC042EEB259CABE826931EE97BDB59",
        "name": "networkAlmostIdle",
        "timestamp": 353401.361806
      }
    },
    {
      "method": "Page.lifecycleEvent",
      "params": {
        "frameId": "05B710B19D8195A7153DDEB2B8948580",
        "loaderId": "07BC042EEB259CABE826931EE97BDB59",
        "name": "networkIdle",
        "timestamp": 353401.361806
      }
    }
  ]
}

connorjclark avatar Jan 12 '22 17:01 connorjclark

I face a similar issue with Lighthouse. The only difference is, that I see ERR_TIMED_OUT instead of CONNECTION_FAILED.

I could see the issue was raised earlier and then closed - https://github.com/GoogleChrome/lighthouse/issues/2686.

I'm trying to run the audit through the Chrome extension.

Could you please take a look at this?

sharath2106 avatar Aug 08 '22 20:08 sharath2106

The only difference is, that I see ERR_TIMED_OUT instead of CONNECTION_FAILED.

So a different issue... please open a new issue and fill out all the required information.

connorjclark avatar Aug 08 '22 21:08 connorjclark

The issue doesn't seem reproducible. Lighthouse runs fine on the URL. Closing this out, please feel free to reopen if the issue still persists.

alexnj avatar Aug 23 '22 19:08 alexnj