Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Krinkle opened this issue Jan 8, 2020 · 24 comments · Fixed by #11901 or #12200
Closed

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

Krinkle opened this issue Jan 8, 2020 · 24 comments · Fixed by #11901 or #12200
Assignees
Labels
bug needs-investigation P2 PSI/LR PageSpeed Insights and Lightrider

Comments

@Krinkle
Copy link

Krinkle commented Jan 8, 2020

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

@ai-slave
Copy link

ai-slave commented Apr 30, 2020

having the same issue with google analytics

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

@guzzdev
Copy link

guzzdev commented May 18, 2020

Any fix?

@patrickhulce
Copy link
Collaborator

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

@guzzdev
Copy link

guzzdev commented May 18, 2020

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

@patrickhulce
Copy link
Collaborator

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?

@romainst
Copy link

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

@DemkivV
Copy link

DemkivV commented Jul 17, 2020

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/?

@Lofesa
Copy link

Lofesa commented Oct 23, 2020

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

Captura

@spacedawwwg
Copy link

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?

@Lofesa
Copy link

Lofesa commented Nov 23, 2020 via email

@Lunnatica
Copy link

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

@crm911
Copy link

crm911 commented Dec 8, 2020

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

@gusbemacbe
Copy link

And YouTube:

image

@tjkohli
Copy link

tjkohli commented Feb 16, 2021

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

@connorjclark
Copy link
Collaborator

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

@Frackher
Copy link

Frackher commented Mar 1, 2021

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.

@connorjclark
Copy link
Collaborator

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.

@Frackher
Copy link

Frackher commented Mar 2, 2021

@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 ?

@Lofesa
Copy link

Lofesa commented Mar 4, 2021

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

@paulirish
Copy link
Member

upstream bug: b/177367218

@Frackher
Copy link

Frackher commented Mar 18, 2021

@connorjclark
I have still this bug while calling API PageSpeed Insights (in JS).
I'm testing this website : https://www.labanqui.se/
Does I need to specify in another thread or repo ?

I've attached the details, the error comes from the GA tag

{ "id":"errors-in-console", "title":"Browser errors were logged to the console", "description":"Errors logged to the console indicate unresolved problems. They can come from network request failures and other browser concerns. [Learn more](https://web.dev/errors-in-console/)", "score":0, "scoreDisplayMode":"binary", "details":{ "headings":[ { "itemType":"source-location", "text":"Source", "key":"sourceLocation" }, { "itemType":"code", "text":"Description", "key":"description" } ], "type":"table", "items":[ { "source":"network", "description":"Failed to load resource: net::ERR_BLOCKED_BY_CLIENT.Inspector", "sourceLocation":{ "line":0, "column":0, "url":"https://analytics.google.com/g/collect?v=2&tid=G-B4XJCJ05QY>m=2oe3a0&_p=1122375522&sr=360x640&_gaz=1&ul=en-us&cid=1939546431.1616074942&_s=1&dl=https%3A%2F%2Fwww.labanqui.se%2F&dt=Labanqui.se%20-%20Agence%20Web%20%C3%89co-Responsable&sid=1616074942&sct=1&seg=0&en=page_view&_fv=1&_nsi=1&_ss=1", "urlProvider":"network", "type":"source-location" }, "url":"https://analytics.google.com/g/collect?v=2&tid=G-B4XJCJ05QY>m=2oe3a0&_p=1122375522&sr=360x640&_gaz=1&ul=en-us&cid=1939546431.1616074942&_s=1&dl=https%3A%2F%2Fwww.labanqui.se%2F&dt=Labanqui.se%20-%20Agence%20Web%20%C3%89co-Responsable&sid=1616074942&sct=1&seg=0&en=page_view&_fv=1&_nsi=1&_ss=1" }, { "source":"network", "sourceLocation":{ "url":"https://stats.g.doubleclick.net/g/collect?v=2&tid=G-B4XJCJ05QY&cid=1939546431.1616074942>m=2oe3a0&aip=1", "line":0, "type":"source-location", "urlProvider":"network", "column":0 }, "url":"https://stats.g.doubleclick.net/g/collect?v=2&tid=G-B4XJCJ05QY&cid=1939546431.1616074942>m=2oe3a0&aip=1", "description":"Failed to load resource: net::ERR_BLOCKED_BY_CLIENT.Inspector" } ] } }

@connorjclark
Copy link
Collaborator

It'll be fixed in the next release we do of PSI. I'd expect within 1-2 weeks.

@AdityaSaroj
Copy link

Was this ever fixed? I have the same issue with tawk.to
image

@connorjclark
Copy link
Collaborator

@AdityaSaroj please open a new issue with info from the bug template filled out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment