Title: google_api_connection_fail
Last modified: August 21, 2023

---

# google_api_connection_fail

 *  Resolved [obarden](https://wordpress.org/support/users/obarden/)
 * (@obarden)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/)
 * Since about a week or so I got json errors in the sitekit plugin, which was working
   before (connected to google console and ga4)
 * _AH01071: Got error ‘PHP message: Connection refusedPHP message: Connection refused’,
   referer: [https://www.tarotpulse.com/wp-admin/plugins.php](https://www.tarotpulse.com/wp-admin/plugins.php)_
 * I’ve already deactivated all other plugins, with the same effect.
 * After deactivating web3 cache the errors are gone, but I’m still not able to 
   connect to google sitekit.
 * on the ssh console I’ve checked the following:
   prompt:/etc/network/interfaces.
   d# curl -6 -I [https://sitekit.withgoogle.com](https://sitekit.withgoogle.com)
   HTTP/2 403alt-svc: h3=”:443″; ma=2592000,h3-29=”:443″; ma=2592000
 * prompt:/etc/network/interfaces.d# curl -4 -I [https://sitekit.withgoogle.com](https://sitekit.withgoogle.com)
   
   HTTP/2 200content-type: text/htmlvary: Accept-Encodingx-cloud-trace-context: 
   4879a515ba1e1b830edf74084d064688date: Mon, 21 Aug 2023 13:41:22 GMTserver: Google
   Frontendalt-svc: h3=”:443″; ma=2592000,h3-29=”:443″; ma=2592000
 * So it seems related to ipv6 connectivity.
 * Site Health report does not show any criticals or warnings.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle_api_connection_fail-47%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-16989549)
 * Hi [@obarden](https://wordpress.org/support/users/obarden/) thanks for getting
   in touch. Based on the error you’re encountering, it is possible that your host
   IP address is blocked, however, this may only be from your IPv6 address (if your
   IP is within a specific range that includes some users from regions where Google
   services are blocked).
 * To check this further, please could you confirm your IPv6 address. If you are
   unsure on how to get this then you’ll be able to get this from your hosting provider.
   Once shared, I will get this checked to see if we can find any such block.
 *  Thread Starter [obarden](https://wordpress.org/support/users/obarden/)
 * (@obarden)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-16989556)
 * The hosts IPv6 adress is 2607:5300:205:200:0:0:0:3ef2
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-16989785)
 * [@obarden](https://wordpress.org/support/users/obarden/) Thanks for sharing, 
   we will perform some checks and I will update here.
 *  Thread Starter [obarden](https://wordpress.org/support/users/obarden/)
 * (@obarden)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-16996154)
 * Any news on this ?
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-16997188)
 * [@obarden](https://wordpress.org/support/users/obarden/) No update back at this
   time. As soon as I receive one I will let you know here.
 *  Thread Starter [obarden](https://wordpress.org/support/users/obarden/)
 * (@obarden)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-17002770)
 * This seems a server or location based issue.
   The server showing the problem (
   on ALL attached Domains !!!) is based in Canada.I have another Server of that
   same provider based in germany, where all attached Domains don’t have any problems
   with sitekit.
 * When I look at the Plesk Error Log I find alot of these errors:
   AH01071: Got 
   error ‘PHP message: Connection refusedPHP message: Connection refusedPHP message:
   Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP
   message: Connection refusedPHP message: Connection refusedPHP message: Connection
   refusedPHP message: Connection refusedPHP message:
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-17006138)
 * Thanks for the update [@obarden](https://wordpress.org/support/users/obarden/).
   Based on other reports of the same, it’s very possible that your IPv6 address,
   which you kindly shared, is part of an IPv6 range that also includes users that
   are based on regions where Google services are blocked, resulting in all sites
   within that range being blocked.
 * Unfortunately we don’t have an update on this check at time time, but we are 
   awaiting confirmation. We’ll let you know as soon as we have an update on this.
   What you may wish to do in the meantime, is temporarily disable IPv6 at host 
   level, so that IPv4 is used to connect with Site Kit. Based on the information
   you shared previously there is no problem communicating with Site Kit over IPv4.
 * Let me know if you have any questions with the above.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-17017876)
 * [@obarden](https://wordpress.org/support/users/obarden/) After checking your 
   sites IPv6 record, it looks as though this was blocked but has since been unblocked
   as of 29th August. Could you please confirm you no longer have the issue?
 *  Thread Starter [obarden](https://wordpress.org/support/users/obarden/)
 * (@obarden)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-17018687)
 * Is there a way to check myself for blocked IP4/6 Adresses ?
   Unfortunately nothing
   changed so far:
 * Your site may not be ready for Site Kit
 * Looks like your site is having a technical issue with requesting data from Google
   services.
   To get more help, ask a question on our [support forum](https://wordpress.org/support/plugin/google-site-kit/)
   and include the text of the original error message:google_api_connection_fail
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-17018835)
 * [@obarden](https://wordpress.org/support/users/obarden/) Are you able to attempt
   to setup Site Kit even though you are seeing this message? If so could you confirm
   what happens when you attempt setup?
 * That is strange as we can see that this was initially blocked but is flagging
   as no longer blocked. Do you see the same from an [incognito browser](https://imgur.com/ALzgiHp)?
 * You can also check for an IPv6 block if you wish, should you be comfortable making
   cURL commands as per the below. You’re hosting provider may also be able to do
   this for you:
 * `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 IPv_6
 * If your site is blocked then the second command above will result in a 403 error
   and a 200 response code if there are no blocks which your IPv4 should return.
 * Let me know if you have any questions with the above.
 *  Thread Starter [obarden](https://wordpress.org/support/users/obarden/)
 * (@obarden)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-17022439)
 * Nope, I’m not. directly shows this error:
   The request to the authentication proxy
   has failed with an error: request_failed [Get help](https://sitekit.withgoogle.com/support?error_id=request_to_auth_proxy_failed).
 * In shell it show’s same behaviour:
 * oliver@vps-xxxxxxx:~$ curl -4 -I [https://sitekit.withgoogle.com](https://sitekit.withgoogle.com)
   
   HTTP/2 200content-type: text/htmlvary: Accept-Encodingx-cloud-trace-context: 
   d35982108547c4063c78fddc5a4e2c0adate: Sun, 03 Sep 2023 19:12:14 GMTserver: Google
   Frontendalt-svc: h3=”:443″; ma=2592000,h3-29=”:443″; ma=2592000
 * oliver@vps-xxxxxxx:~$ curl -6 -I [https://sitekit.withgoogle.com](https://sitekit.withgoogle.com)
   
   HTTP/2 403alt-svc: h3=”:443″; ma=2592000,h3-29=”:443″; ma=2592000
 *  Thread Starter [obarden](https://wordpress.org/support/users/obarden/)
 * (@obarden)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-17022441)
 * OK; so I was able to remove IPv6 from that server. Now it’s working. So we now
   know where the problem was coming from.
 *  Thread Starter [obarden](https://wordpress.org/support/users/obarden/)
 * (@obarden)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-17022442)
 * can be closed
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-17023916)
 * Glad to hear that you’ve since been able to connect Site Kit, with IPv6 disabled.
   If you run into any further issue, be sure to reach out.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘google_api_connection_fail’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

 * 14 replies
 * 3 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/google_api_connection_fail-47/#post-17023916)
 * Status: resolved