lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

PageSpeed creates console errors on WebSocket requests

Open ealmiladi opened this issue 4 years ago • 7 comments

Provide the steps to reproduce

  1. Run LH on https://artisanresume.com

What is the current behavior?

image

What is the expected behavior?

Either Lighthouse should permit these network requests, or ignore the browser errors related to them as they're not representative of the client experience.

Environment Information

  • Affected Channels: Web.dev

ealmiladi avatar May 10 '21 04:05 ealmiladi

Thanks for filing @ealmiladi! They're not being blocked (that would be indicated by net::ERR_BLOCKED_BY_CLIENT) but they do appear to consistently timeout only in web.dev/LR (example). Backend folks will need to take a look at what's going on here 👍

patrickhulce avatar May 10 '21 15:05 patrickhulce

Thanks Patrick!

ealmiladi avatar May 10 '21 18:05 ealmiladi

Similarly I have web app that opens a websocket connection to a Google Cloud Run hosted backend (with a .run.app dns name). It works fine in the browser, but from the console log that lighthouse complains about, apparently there's a dns resolution failure.

Edit: to be clear - it works fine e.g. from lighthouse in devtools - it's just the web.dev hosted version that's problematic.

PaulRudin avatar May 19 '21 11:05 PaulRudin

The originally report page doesn't reproduce this anymore but this page does: https://youimmi.com/. The root cause does appear to be web socket requests.

adamraine avatar Aug 28 '24 19:08 adamraine

@adamraine what's the way to fix this issue related with name error on https://youimmi.com. It works fine in dev console in lighthouse, but it reproduces on pagespeed insights. Due to this issue we aren't able to reach 100/100 points

rsmything avatar Aug 29 '24 02:08 rsmything

It will be fixed?

Fudoshiki avatar Jul 15 '25 21:07 Fudoshiki

FYI, these sorts of things do not impact score. Only metrics do.

We could filter out such messages in PSI.

connorjclark avatar Jul 15 '25 22:07 connorjclark