google_api_connection_fail
-
Hello,
I’m getting a google_api_connection fail on my Site Kit plugin. 🙁
I field a Google Forms as well.
Thanks,
wiL
The page I need help with: [log in to see the link]
-
Thanks for reaching out @willaxa, and sharing your Site Health information. It sounds like there is something either at host level or with your plugin environment blocking communication between your site and the Site Kit service. So we can determine more on this, please share the following:
- Do you see any warnings or errors when checking yourSite Health status (Tools > Site Health > Status), which differs from your Site Health information requested above? Such errors may include REST endpoint references.
- Have you been able to set up Site Kit on this site previously, or on any other sites on the same hosting platform?
Note also that I did notice some plugins active which, with some configuration, could impact Site Kit setup. Once we have the above I will provide some troubleshooting checks to help determine any particular cause.
Let me know if you have any questions with the above.
Hi James,
Yes we have Site Kit installed for almost 8 years 🙂 It just suddenly stopped a few days ago.
It seems like all connection to Google has been block from the website hosting.
I’ve been coordinating with NameHero.com but they keep on telling me to empty my browser cache. I switched browsers and gone incognito mode but I still get the same Google API error.
We have deactivated WordFence and Litecache plugin but still the same issue. Then we deactivated all plugins but Site Kit and tried again but still the same issue.
https://app.screencast.com/zhYO7iblGViON
REST API is available https://app.screencast.com/YtySQic6rGC9C
Thanks for checking in,
wiL
Thanks for the update @willaxa. Based on the additional information, let’s try a few things which may help us to determine where the fault lies. Please share the following:
- Can you confirm no issues when setting up Site Kit from this temporary WordPress site? This will help rule out local, network or browser based issues.
- Do you have any other WordPress sites on the same hosting platform from where you can attempt Site Kit setup from?
Assuming you can complete set up from the disposable site, let me know if you’re comfortable making come cURL commands similar to those requested in this support topic. This will help determine if your site is blocked based on your IPv6 address.
Let me know if you have any questions with the above.
Unfortunately we can’t add a temp domain.
I have forwarded this to our hosting provider, hopefully they can check the cURL commands on their end. We’ll get back to you as soon as they respond. Thanks,
wiL
Hello James,
This is the response the hosting gets when running the cURL command.
curl -I https://sitekit.withgoogle.com HTTP/2 200 content-type: text/html vary: Accept-Encoding x-cloud-trace-context: 75a669f1835b5db37b8060c6cf7fe1c3 date: Mon, 27 Nov 2023 21:23:21 GMT server: Google Frontend alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Even though the response is 200, we still seem to be getting the same problem.
gurpreetji.ca – [165.140.68.129]
Any help would be appreciated,
wiL
Thanks for the follow up @willaxa. Unfortunately the cURL command provided only includes a standard cURL check. Would it be possible for you to ask your hosting provider to check both the below, which can help determine whether your site is impacted by an IpV6 only block?
curl -4 -I https://sitekit.withgoogle.com
The above will check the status if communication over IPv4curl -6 -I https://sitekit.withgoogle.com
The above will check the status if communication over IPv6I suspect you may encounter a 403 error if communicating over IPv6 (the second command). If this is the case, please share your sites IPv6 address. I didn’t notice any AAAA records for your site which can help to determine this.
Let me know if you have any questions with the above.
Thank you James, I’ll pass this on to our host. 🙂
Great! Feel free to touch base here if you have any questions in the meantime.
Hello James,
Here are the results for both the cURL commands:
curl -4 -I https://sitekit.withgoogle.com HTTP/2 200 content-type: text/html vary: Accept-Encoding x-cloud-trace-context: 2451677ac5a6c522b1bda9294eded9ad date: Tue, 28 Nov 2023 14:22:04 GMT server: Google Frontend alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
curl -6 -I https://sitekit.withgoogle.com curl: (7) Couldn't connect to server
IPv6 is not yet available for use on NameHero accounts. Hence, there is no IPv6 address available for your website which could be the reason for the error message while running the second command.
Is there anything else we can check?
Thanks,
wiLAppreciate the additional information @willaxa. Considering IPv6 is disabled at host level, and you are encountering a 200 response, let’s perform another check via the following:
- Login to your live site from a Chrome browser incognito window.
- Install and activate the Health Check & Troubleshooting plugin.
- Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
- From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google“.
- Check for the same error.
I’m aware you did perform a similar check, with only Site Kit active, however, the above will use a core them while also checking from an incognito session which can help rule out browser features or extensions impacting set up.
Let me know if you have any questions with the above.
Hello James,
Unfortunately it’s the same result even after installing and activating the Health Check & Troubleshooting plugin.
https://app.screencast.com/cEQmGaSQi4Gu5
Do you have any other ways for us to check the connection?
Thanks,
wiLThanks for checking @willaxa. In that case this does indicate a possible configuration or issue at host level. There are a couple of ways to check this further. In order to do so, please share the following:
- Can you confirm no issues setting up Site Kit when using this disposable WordPress site?
- As I noticed some additional .htaccess rules, can you visit your permalinks page (Settings > Permalinks) and press the “Save change” button? This will recreate a fresh .htaccess file for you. I ask as rules applied at .htaccess level can impact Site Kit behavior.
- Do you see any warnings or errors when checking yourSite Health status (Tools > Site Health > Status), which differs from your Site Health information previously shared?
Note also that in relation to not being able to create another WordPress site from another domain on the same hosting platform, you may be able to create a subdomain off your parent domain. This could be used to test another WordPress site on the same hosting platform, helping to pinpoint the cause.
Hi James,
We have changed web hosting from Namehero. It seems like our server was blocked from accessing Google services.
It started moving when we changed hosting.
Too bad we couldn’t find a solution with Namehero, but I’m glad it’s working now.
Thanks,
wiLThanks for the update @willaxa. Glad to hear all is working now as expected. If you run into any further issues, you know where to find us. Best of luck!
- The topic ‘google_api_connection_fail’ is closed to new replies.