Applicable to:
- Plesk Onyx
Symptoms
-
Google PageSpeed Insights analyze task for the domain in Extensions > My Extensions > Google PageSpeed Insights fails with the following error message:
PLESK_ERROR: The task "task\analyze" has failed.
API request couldn't be executed
properly. Please try again! -
The file
/var/log/plesk/panel.log
contains messages like the following:CONFIG_TEXT: ERR [extension/pagespeed-insights] Forbidden - The calling IP address 203.0.113.2 does not match the IP restrictions configured on the API key. Please use the API Console to update
OR
CONFIG_TEXT: ERR [extension/pagespeed-insights] Forbidden - The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.
Cause
IP address restrictions are enabled for the API key in Google API Console but the server address is not allowed.
Resolution
-
log in to Google API Console and go to the API credentials
-
Edit the API key. Add the IP of the server to the list at Application restrictions > Accept requests from these server IP addresses. Click Save
Note: It may take up to 5 minutes for settings to take effect
Additional information
For more details refer to the Google API Console Help.
Comments
0 comments
Please sign in to leave a comment.