PageSpeed Insights times out - pagespeed

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:
PageSpeed 500 error
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.

Related

Unauthorized response for metaslider rest api request after installing because of Disable Rest Api plugin

I have a problem with requsting rest API endpoint via postman,
the request is:
http://localhost/word-test/wordpress/wp-json/metaslider/v1/slideshow/all
and response is:
{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"status": 401
}
}
IF I requested:
http://localhost/word-test/wordpress/wp-json/wp/v2/posts/
Then everything works properly.
The problem was found after I installed https://wordpress.org/plugins/disable-json-api/ ... Things I've tried:
enable or disable metaslider links "wp-json/metaslider/v1/slideshow/all" in "Disable Rest API" plugin for authenticated and unauthenticated users.
Delete or deactive The whole plugin
Any clue, please?
Note: I am using localhost links here to explain my problem but I have the same issue in a real site

Nginx Wordpress issue with REST Api 401

I have migrated from shared LAMP hosting to VPS NGINX and faced an issue with wordpress REST Api, when I try to get /wp-json/wp/v2/posts/ it response with error:
{
"code": "rest_forbidden",
"message": "You are not currently logged in.",
"data": {
"status": 401
}
}
But when I request woocommerce REST Api it works fine.
On Apache server all works fine.
Permalinks are enabled.
Have tried to add rewrite rules
rewrite ^/wp-json/(.*?)$ /index.php?rest_route=/$1 last;
But it has no effect

Internal Server Error with Routing and Geoencoding

I signed up for an account to try out the REST geoencoding and the routing APIs. In both scenarios, I am getting a 500 internal server error with no details. Both example codes I have taken straight from the documentation and replaced my API key.
https://route.ls.hereapi.com/routing/7.2/calculateroute.json?apiKey=V6...oI&waypoint0=geo!52.5,13.4&waypoint1=geo!52.5,13.45&mode=fastest;car;traffic:disabled
https://geocoder.ls.hereapi.com/search/6.2/geocode.json?languages=en-US&maxresults=4&searchtext=Sunnyvale&apiKey=V6...oI
In both instances I get a generic 500 Internal Server error
{
"error": "Internal Server Error",
"error_description": "Internal Server Error"
}
I have tried signing up for two accounts just in case there was an issue with the first, but get the same response.
Any thoughts?
I just tested with my API key and it worked fine. It could have been a momentary issue, although I don't see any incidents in our status page (https://status.here.com/status). Can you try again please?

Forbidden access to white listed isiscouch

Im trying to reach isiscouch on my app on pythonanywhere and despite the fact that the site is whitelisted and that I'm currently a free user it just returns HTTPError: (403, 'Forbidden') on error log. What am I missing here?
response, content = httplib2.Http().request("https://-stripped-.iriscouch.com", 'GET', None, headers)
You're probably getting the 403 from the site, then. What is in the content of the response?

Google Translate API v2 403 error on server - not from 2 dev boxes

Using a Server API Key from 2 different dev boxes and Google Translate works fine. On the server I get the following error:
{
...
"code": 403,
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
I have added the Server IP to the list of approved IPs. I have tried using a browser key as well to no avail.

Resources