• Resolved artaficacom

    (@artaficacom)


    Hello,

    I’m experiencing an issue with the Site Kit on my website. Whenever I attempt to set up Site Kit, I encounter an error message: “google_api_connection_fail.”

    I would greatly appreciate your assistance in resolving this problem.

    Thank you.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter artaficacom

    (@artaficacom)

    Additionally, I have submitted the Site Kit by Google | Site Health Information through the Google form.

    Thank you.

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out, and for sharing your Site Health information. As nothing obvious stands out from checks performed on your site and details provided, please share the following so we can determine more and provide the most suitable troubleshooting suggestion.

    1. Have you been able to set up Site Kit on this site previously, or is this a first time attempt?
    2. Do you see any warnings or errors when checking your Site Health status (Tools > Site Health > Status), which differs from your Site Health information previously shared? Such errors may include REST endpoint references.
    3. What is your current location? I ask as Google services can be restricted in some regions. If services are blocked this is the error you’re likely to encounter. As it looks like you’re a Cloudflare user it may also be related to your Cloudflare servers location at the time of when you’re trying to connect.

    Let me know if you have any questions with the above. One we have the above we can hopefully determine the cause.

    Thread Starter artaficacom

    (@artaficacom)

    Thank you for you reply.

    1. Previously, Site Kit was set up correctly on my website and was functioning properly. However, about a week ago, I noticed an error message “Invalid JSON response” related to Site Kit in my site’s admin panel. In an attempt to resolve the issue, I tried to reset and reinstall Site Kit. Unfortunately, the reset and reinstallation process did not complete successfully, and I continue to receive the error message “google_api_connection_fail.”
    2. I have no warnings or errors when checking my Site Health status.
    3. I am from Poland, and I use Cloudflare for this site. However, I suspect that Google may have banned requests from this particular hosting, as I also utilize Cloudflare for another site hosted by a different hosting company, and Site Kit works properly on that site.

    Thank you.

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for the update @artaficacom. Based on the above, are you comfortable performing some terminal command checks from your host? If so you can perform the below, which can help to determine if the block is specific to IPv6, which is something we’ve been investigating.

    curl -4 -I https://sitekit.withgoogle.com
    The above will check the status if communication over IPv4

    curl -6 -I https://sitekit.withgoogle.com
    The above will check the status if communication over IPv6

    Alternatively, you may wish to check with your hosting provider for any firewall which may be impacting setup. I didn’t find any documentation regarding any firewall however I suspect you’ll find a Modsecurity or other application within your hosting control panel. You may wish to check can you attempt set up with this temporarily disabled, or from another site using the same hosting platform.

    Thread Starter artaficacom

    (@artaficacom)

    ~#curl -4 -I https://sitekit.withgoogle.com
    HTTP/2 200
    content-type: text/html
    vary: Accept-Encoding
    x-cloud-trace-context: f567ddb46434d39cccce3f349ca2dea2
    date: Tue, 06 Jun 2023 14:18:47 GMT
    server: Google Frontend
    alt-svc: h3=”:443″; ma=2592000,h3-29=”:443″; ma=2592000

    ~#curl -6 -I https://sitekit.withgoogle.com
    HTTP/2 403
    alt-svc: h3=”:443″; ma=2592000,h3-29=”:443″; ma=2592000

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for the update, good to hear you were comfortable making such commands. What’s likely happening based on other reports, is your IPv6 address within a block that contains some IPv6 address’s from regions where Google services are blocks.

    From reviewing your DNS records I can see a couple of IPv6 address however these are related to your Cloudflare set up. Before I reach out to your hosting provider on this can you share the IPv6 address, which you’ll get from your hosting control panel? I can then request a check to see if this block is on the Google side, based on your IPv6 address.

    Note that you may also wish to temporary disable Cloudflare and see if you encounter the same error when Site Kit is connecting with your original host providers IPv6 address.

    Thread Starter artaficacom

    (@artaficacom)

    Thank you for you reply.

    ~# ifconfig -a
    ens3: flags=4163 mtu 1500
    inet 205.196.80.196 netmask 255.255.255.0 broadcast 205.196.80.255
    inet6 fe80::216:3eff:fe03:e98 prefixlen 64 scopeid 0x20
    inet6 2604:240:1:4::9c prefixlen 48 scopeid 0x0
    ether 00:16:3e:03:0e:98 txqueuelen 1000 (Ethernet)
    RX packets 8242 bytes 1335231 (1.2 MiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 7121 bytes 11456727 (10.9 MiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    lo: flags=73 mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10
    loop txqueuelen 1000 (Local Loopback)
    RX packets 85535 bytes 35473311 (33.8 MiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 85535 bytes 35473311 (33.8 MiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    • This reply was modified 1 year, 5 months ago by artaficacom.
    Thread Starter artaficacom

    (@artaficacom)

    Thank you for you reply and help. I will attempt to disable Cloudflare as a troubleshooting step. However, if possible, I would prefer to find an alternative solution to resolve this issue without having to disable Cloudflare on my site.

    Thread Starter artaficacom

    (@artaficacom)

    I have temporarily disabled Cloudflare, but unfortunately, I still encountered the same error in Site Kit.

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for the update @artaficacom. I’ve requested a check from the team now.

    What you may wish to do while this is being checked, is temporarily disable IPv6 at host level. After doing so you should be able to set up Site Kit. This isn’t ideal of course, but I will keep you updated as soon as I hear back from the check if performed on your site.

    Thread Starter artaficacom

    (@artaficacom)

    Thank you for your response. I have disabled IPv6, and I’m pleased to inform you that the problem has been resolved. Please let me know when I will be able to enable the IPv6 address for my host.

    Thank you very much.

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for confirming this. Based on your check I will reach out to your hosting provider, as the block isn’t something we can resolve on the Site Kit side. What’s likely happening as mentioned is a site on the same IP range is connecting with Google services from a region where Google services are blocked, resulting in all sites within the same block being restricted.

    I’ll keep you updated anyway. Now that you’re connected you may even wish to enable IPv6 once more.

    Plugin Support James Osborne

    (@jamesosborne)

    Hi @artaficacom,

    Just to keep you updated. I can confirm there was a Google related block based on your IPv6 address being within a blocked range. The full range is likely blocked due to another IP within the same range located in a region where Google services are block.

    I’ve also heard back from your hosting provider and they stated they would reach out to you. Have you since attempted Site Kit setup once more? If not, please go ahead and do so, as I’ve provided your hosting company with details on resolving this block.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    As we didn’t receive a response I’ll mark this as resolved. Feel free to?open a new support topic?if you continue to encounter issues, or reopen this topic and we’d be happy to assist.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘google_api_connection_fail’ is closed to new replies.