- Plesk Onyx
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!
/var/log/plesk/panel.logcontains 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
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.
IP address restrictions are enabled for the API key in Google API Console but the server address is not allowed.
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
For more details refer to the Google API Console Help.