0

Google's PageSpeed do not run in a test environment of a website (ProdPreview). I guess it's due to the password protection in it. Is it possible to make PageSpeed run in this environment? If yes, how to?

PageSpeed give me back the message below, when I try to run it in the ProdPreview environment:

"Lighthouse returned error: ERRORED_DOCUMENT_REQUEST. Lighthouse did not reliably load the requested page. Make sure you are testing the correct URL and that the server is responding appropriately to all requests. (Status Code: 401) Dispensing"

No code at all. It's just a public tool being used in a private environment.

Expected result: Get the PageSpeed analysis result. Actual result: As described in "#2 = Provide background including what you've already tried"

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343

1 Answers1

0

Usually, you can pass the password-protected website by embedding username and password into the url.

http://username:password@example.com

This url works on any browser but I think it does not work on google pagespeed.

polyglot
  • 822
  • 5
  • 9