I have several websites hosted on the same provider. No matter what site I try, I get a "timed out" error on the Google PageSpeed Insights site (https://developers.google.com/speed/pagespeed/insights/) when I enter any of my site URLs. It doesn't matter how large or how small the website is.
What I do is this: I enter my site's URL into Google's Page Insights "Enter a web page URL" textbox and click, "Analyze." The status bar reaches about 81% before I get the following error:.
"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_TIMED_OUT)"
When I look at Chrome's developer tools, it yields the following information about the script Google is using and where it is failing on their site:
If I drill down to the URL of the API being used on Google's site, it is calling the runPagespeed method and returning a 403 error:
/*
{
"error": {
"code": 403,
"message": "Requests from referer \u003cempty\u003e are blocked.",
"errors": [{
"message": "Requests from referer \u003cempty\u003e are blocked.",
"domain": "global",
"reason": "forbidden"
}],
"status": "PERMISSION_DENIED"
}
}
*/
I'm lost as to why Google is returning a 403 error. I see nothing on my site's logs that indicates it's hitting a 403 error, so I can only assume the 403 error is on Google's end, or Lighthouse. Thanks in advance for any help or suggestions.