lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

PSI: "Browser errors were logged to console" due to Inspector-blocked resource

Open Krinkle opened this issue 6 years ago • 24 comments

URL Description
/stats/matomo?idsite=… Failed to load resource: net::ERR_BLOCKED_BY_CLIENT.Inspector

What is the current behavior?

The "Best Practices" score is reduced to 92.

What is the expected behavior?

For resources blocked by PSI itself to not affect the score.

Environment Information

Krinkle avatar Jan 08 '20 20:01 Krinkle

having the same issue with google analytics

`/g/collect?v=…(www.google-analytics.com) Failed to load resource: net::ERR_BLOCKED_BY_CLIENT.Inspector`

ai-slave avatar Apr 30 '20 16:04 ai-slave

Any fix?

guzzdev avatar May 18 '20 04:05 guzzdev

@Krinkle @ndrozd @Guzzox any URL for us to be able to repro?

patrickhulce avatar May 18 '20 15:05 patrickhulce

@patrickhulce My page doesn't have any Javascript in it check it out https://guzzox.xyz/

guzzdev avatar May 18 '20 15:05 guzzdev

Thanks @Guzzox! In your case it's not inspector blocked but net::ERR_ACCESS_DENIED on your CSS. That's strange the error appears to be logged even though the CSS loaded successfully.

@exterkamp does this help provide any clues at all?

patrickhulce avatar May 18 '20 15:05 patrickhulce

Hi there, I'm having the same issue with Facebook's Business pixel. The request is apparently a POST which works but ends up in a 307 Internal redirect when running in a normal environment.

URL Description
https://www.facebook.com/tr/ Failed to load resource: net::ERR_BLOCKED_BY_CLIENT.Inspector

Example site tested: http://www.france24.com/en/ Example report with the issue : https://lighthouse-dot-webdotdevsite.appspot.com//lh/html?url=https%3A%2F%2Fwww.france24.com%2Fen%2F#best-practices

romainst avatar Jul 10 '20 09:07 romainst

I'm having the same issue with the Matomo plugin for WordPress.

Site: https://enso-web.design/ Report: https://lighthouse-dot-webdotdevsite.appspot.com//lh/html?url=https%3A%2F%2Fenso-web.design%2F Issue:

URL Description
https://enso-web.design/wp-content/plugins/matomo/app/matomo.php Failed to load resource: net::ERR_BLOCKED_BY_CLIENT.Inspector

What's the best practice to solve this issue?

Edit To me, there seem to be 3 possible solutions:

  • Require analytic tool developers to build in a solid error handling
  • Disable the adblocker (or whatever blocks these analytics tools) in the "online Lighthouse"
  • Whitelist analytics tools, so they don't get blocked in the audit and thus negatively affect the rating.

I would expect similar results as in Lighthouse, used in Chrome locally. Despite using an adblocker, I didn't had issues as listed here. If the local Lighthouse in Chrome doesn't block resources, why should the online one from web.dev/measure/?

v-avuso avatar Jul 17 '20 12:07 v-avuso

Same here whit analitycs in web.dev, not locally or in WPT

Captura

Lofesa avatar Oct 23 '20 12:10 Lofesa

having the same issue with google analytics

/g/collect?v=…([www.google-analytics.com](http://www.google-analytics.com)) Failed to load resource: net::ERR_BLOCKED_BY_CLIENT.Inspector

I came here hoping to find a solution to this. It seems to be when using Google's new analytics maybe?

spacedawwwg avatar Nov 14 '20 17:11 spacedawwwg

What add-blocker can be turned off in PSI or web.dev ?

El lun., 23 nov. 2020 16:32, Osherz5 [email protected] escribió:

Try turning off your ad blocker!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GoogleChrome/lighthouse/issues/10198#issuecomment-732235195, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKOZCOZ6545SPIH3QHPNQ3SRJ6APANCNFSM4KEOJ4FA .

Lofesa avatar Nov 23 '20 15:11 Lofesa

Hi,

Is there any update on this issue?

I've started seeing this error in some of my websites when using the new version of Google Analytics.

URL Description
/g/collect?v=…(www.google-analytics.com) Failed to load resource: net::ERR_BLOCKED_BY_CLIENT.Inspector

Example site: https://allthemeasurements.com/ Lighthouse report with the issue: https://lighthouse-dot-webdotdevsite.appspot.com//lh/html?url=https%3A%2F%2Fwww.allthemeasurements.com%2F

Lunnatica avatar Nov 24 '20 23:11 Lunnatica

+1 for using the new Google Analytics: Failed to load resource: net::ERR_BLOCKED_BY_CLIENT.Inspector

crm911 avatar Dec 08 '20 05:12 crm911

And YouTube:

image

gusbemacbe avatar Dec 20 '20 05:12 gusbemacbe

Any progress on this? Still getting this error with Google Analytics 4 using https://web.dev/measure

tjkohli avatar Feb 16 '21 03:02 tjkohli

Expect a fix within a week, when we next upgrade the Lighthouse version of PSI/web.dev

connorjclark avatar Feb 16 '21 05:02 connorjclark

Hello, is there any update on this ? Evry website using new GA tags are getting "Failed to load resource: net::ERR_BLOCKED_BY_CLIENT.Inspector" and so a 93/100. Thanks.

Frackher avatar Mar 01 '21 10:03 Frackher

This is fixed in PSI/web.dev. Are you getting a Lighthouse report from there or somewhere else? Please provide a URL for the page you are testing.

connorjclark avatar Mar 01 '21 20:03 connorjclark

@connorjclark Yes sorry, I'm using LH with pagespeed insight api. The 93% is still present on the API, maybe I've to report elsewhere ?

Frackher avatar Mar 02 '21 14:03 Frackher

The issue still present in webdev. https://intersindicalrm.org/ with this url archivo

Lofesa avatar Mar 04 '21 07:03 Lofesa

upstream bug: b/177367218

paulirish avatar Mar 05 '21 20:03 paulirish