question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lighthouse API request works from local machine, does not work from the server

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
devtools-botcommented, Aug 27, 2019

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.

0reactions
patrickhulcecommented, Aug 28, 2019

How can this be a location issue if I’m asking google API (which asks target website), not the site itself?

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GoogleChrome/lighthouse - Gitter
Im consistently getting error by running lighthouse on kubernetes pod only for some of URL. Logs on the server shows the request is...
Read more >
Measure the performance of a web application with ... - Medium
Lighthouse CI uses Lighthouse, the tool integrated into Chrome-based browsers. We will run the Lighthouse job on Merge Request creation and ...
Read more >
GraphQL Code Libraries, Tools and Services
A JavaScript library for application development using cloud services, which supports GraphQL backend and React components for working with GraphQL data.
Read more >
An Introduction To Running Lighthouse Programmatically
One of the simplest ways to run Lighthouse is through Chrome's DevTools ... Running Lighthouse programmatically is not the best choice for ...
Read more >
Getting Started with Headless Chrome - Chrome Developers
A headless browser is a great tool for automated testing and server environments where you don't need a visible UI shell.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found