Lighthouse API request works from local machine, does not work from the server
See original GitHub issueI want to test site https://www.infojobs.net. When running from UI in Chrome browser it works correctly, when I make API request from my java application, which I run LOCALLY from my computer, it also works correctly. The problem is when I try to make the same request from my AWS server. There is an error:
{ "error": { "errors": [ { "domain": "lighthouse", "reason": "lighthouseError", "message": "Lighthouse returned error: ERRORED_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. (Status code: 405)" } ], "code": 500, "message": "Lighthouse returned error: ERRORED_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. (Status code: 405)" } }
It is very strange as there no difference when making that request locally. Could you help me or point me towards the right direction? I tried different headers etc. but nothing really works. The problem is quite peculiar to be honest. Thanks.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top GitHub Comments
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.
Depending on your location, different Google API servers could be reached which would then cause the request to the site to originate from a different location.