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

ERR_ACCESS_DENIED via lighthouse API and Website #9893

Closed
jmartinezpoq opened this issue Oct 28, 2019 · 9 comments
Closed

ERR_ACCESS_DENIED via lighthouse API and Website #9893

jmartinezpoq opened this issue Oct 28, 2019 · 9 comments
Labels
needs-more-info PSI/LR PageSpeed Insights and Lightrider

Comments

@jmartinezpoq
Copy link

Hi,
Our lighthouse executions started to fail with the following error.
This is happening in the most of the executions:
{ "error": { "errors": [ { "domain": "lighthouse", "reason": "lighthouseError", "message": "Lighthouse returned error: FAILED_DOCUMENT_REQUEST. 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_ACCESS_DENIED)" } ], "code": 500, "message": "Lighthouse returned error: FAILED_DOCUMENT_REQUEST. 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_ACCESS_DENIED)" } }

We are sure that the website is available, that the total load time is less than 60 seconds and that the lighthouse bot is not black listed.

Steps to reproduce

  1. Run LH on via API
    https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=https://lolahome.es/puff-trenzado-fibra-beige-28573.html&key=YOURKEY&strategy=mobile&category=accessibility&category=performance&category=pwa&category=best-practices&category=seo

Environment Information

  • Affected Channels: API
  • Lighthouse version: v5
@devtools-bot
Copy link

Thanks chief! Appreciate you filing this bug. 👏

This is a known issue, most well described in #2784. So, we'll automatically close this as a duplicate.

However, if you believe your bug is different than the cases described there, please comment here with "necessarily-wide-alpaca" and I'll reopen this bug. 🤖 Beep beep boop.

@jmartinezpoq
Copy link
Author

necessarily-wide-alpaca

@patrickhulce
Copy link
Collaborator

Thanks for filing @jmartinezpoq! I'm not able to reproduce this on PSI. Does it happen every time for you? Where are you making the request from and is it possible that site responds differently based on geo?

image

@jmartinezpoq
Copy link
Author

jmartinezpoq commented Oct 28, 2019

Hi @patrickhulce this happens to us the 95% of the executions.
We are making the request from postman.
And the site doesnt has a different response based on geoip.
We are only detecting this behaviour via API thays why i opened the issue

@jmartinezpoq
Copy link
Author

This is still failing to us. We are sure that the website is available.
We are seeing this in other projects like for the next request:
https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=https://www.lladro.com/es_es&key=YOURKEY&strategy=mobile&category=accessibility&category=performance&category=pwa&category=best-practices&category=seo
Response:
{ "error": { "errors": [ { "domain": "lighthouse", "reason": "lighthouseError", "message": "Lighthouse returned error: FAILED_DOCUMENT_REQUEST. 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_ACCESS_DENIED)" } ], "code": 500, "message": "Lighthouse returned error: FAILED_DOCUMENT_REQUEST. 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_ACCESS_DENIED)" } }

@rootman
Copy link

rootman commented Nov 11, 2019

We have experienced the same using the pagespeed insights website.

https://developers.google.com/speed/pagespeed/insights/?hl=de&url=https%3A%2F%2Fwww.movingimage.com%2F&tab=desktop

The error is not present on every run, but it may show up on both mobile and desktop tabs.

Bildschirmfoto 2019-11-11 um 15 02 59

@jmartinezpoq
Copy link
Author

I was able to replicate the @rootman error from the pagespeed insights website.
image
For the URL: https://www.toyplanet.com/
Console Error:

Failed to load resource: the server responded with a status of 500 () https://www.googleapis.com/pagespeedonline/v5/runPagespeed?key=AIzaSyAwlPiPJIkTejgqqH01v9DmtPoPeOPXDUQ&locale=en_US&url=https%3A%2F%2Fwww.toyplanet.com%2F&strategy=mobile

cc @patrickhulce

@jmartinezpoq jmartinezpoq changed the title ERR_ACCESS_DENIED via lighthouse API ERR_ACCESS_DENIED via lighthouse API and Website Nov 13, 2019
@exterkamp exterkamp added the PSI/LR PageSpeed Insights and Lightrider label Nov 13, 2019
@darxide-pl
Copy link

There are huge amount of api errors since 2019-10-25
asd

@exterkamp
Copy link
Member

This is resolved now 🎉

Read the summary post mortem in #9902 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-info PSI/LR PageSpeed Insights and Lightrider
Projects
None yet
Development

No branches or pull requests

6 participants