Title: Unknown Error (code: http_request_failed).
Last modified: March 11, 2020

---

# Unknown Error (code: http_request_failed).

 *  Resolved [lukegood](https://wordpress.org/support/users/lukegood/)
 * (@lukegood)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/)
 * Hi Support Team,
    When I run the setup of the site kit and in the step “Verify
   site ownership”, it shows me the error “Oops! There was a problem during set 
   up. Please try again. Unknown Error (code: http_request_failed).” I’ve tried 
   these tips: Check your site settings; Deactivate all my wordpress plugins except
   the site kit; Deactivate all my plugins in Chrome and so on. But they didn’t 
   work at all. Could you help me solve this problem? Thanks.

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

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/#post-12531250)
 * [@lukegood](https://wordpress.org/support/users/lukegood/) Can you share your
   site URL and Site Health information and we can hopefully identify something 
   which may be impacting setup?
 * If you prefer to share privately you can submit via [this form](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/edit).
 *  Thread Starter [lukegood](https://wordpress.org/support/users/lukegood/)
 * (@lukegood)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/#post-12531494)
 * Thanks for your response. I have submitted the form.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/#post-12531543)
 * [@lukegood](https://wordpress.org/support/users/lukegood/) Many thanks for providing
   the information. Can you confirm you have access to all Google services from 
   your current location?
 *  Thread Starter [lukegood](https://wordpress.org/support/users/lukegood/)
 * (@lukegood)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/#post-12531561)
 * Yes, I think so. I have a VPN can help me use all Google services. But if I don’t
   use VPN, some Google services is not available.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/#post-12535476)
 * [@lukegood](https://wordpress.org/support/users/lukegood/) That may be the problem,
   when connecting your site the authentication service may not have direct access
   to your site, regardless of whether there is a VPN setup on your machine.
 * I will check with the team and get back to you on this.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/#post-12556840)
 * [@lukegood](https://wordpress.org/support/users/lukegood/) I’ve created a GitHub
   issue so we can keep track of this issue. Feel free to add any input, such as
   screenshots and the steps you take before encountering this error.
    [https://github.com/google/site-kit-wp/issues/1262](https://github.com/google/site-kit-wp/issues/1262)
 * I can keep you informed here with any updates on this.
 *  Thread Starter [lukegood](https://wordpress.org/support/users/lukegood/)
 * (@lukegood)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/#post-12557102)
 * Thanks. I have added some screenshots in Github. Hope they are usefull.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/#post-12557147)
 * [@lukegood](https://wordpress.org/support/users/lukegood/) Many thanks, they 
   should be useful. I will report back here once I have any updates.
 *  [kindect](https://wordpress.org/support/users/kindect/)
 * (@kindect)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/#post-12610028)
 * the problem is solved through adding your own code into google php
    though i 
   cannot give the code now due to security reasons , here’s the solution: resolve
   your VPN service to a local host like 127.0.0.1 which should be resolved from
   localhost
 * now try editing the google site kit php and insert the php code to guide all 
   internet service to the host(HTTP HTTPS FTP)
    that should solve the problem
 * I’ve comment on the post on Github
 * best regards
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [6 years ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/#post-12821496)
 * [@lukegood](https://wordpress.org/support/users/lukegood/) Apologies for the 
   late response. From testing various hosting providers I’ve been able to reproduce
   this issue with some hosting providers which require services to be whitelisted
   before successful connection.
 * Can you check with your current host that traffic to/from *.withgoogle.com is
   enabled? You can perform some tests yourself following the steps mentioned in
   the related [GitHub issue](https://github.com/google/site-kit-wp/issues/1262).
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/#post-13194209)
 * As we didn’t receive a response I’ll mark this as resolved. Feel free to open
   a [new support topic](https://wordpress.org/support/plugin/google-site-kit/#new-post)
   if you continue to encounter issues.

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

The topic ‘Unknown Error (code: http_request_failed).’ 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/)

 * 11 replies
 * 3 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/unknown-error-code-http_request_failed-2/#post-13194209)
 * Status: resolved