Title: register_http_request_failed
Last modified: August 30, 2016

---

# register_http_request_failed

 *  [tdugdale](https://wordpress.org/support/users/tdugdale/)
 * (@tdugdale)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/register_http_request_failed-34/)
 * Trying to get JetPack running and getting the following message:
 * register_http_request_failed
 * Any advice is appreciated.
 * Timmo
 * Site: [https://blendedtoolkit.wisc.edu](https://blendedtoolkit.wisc.edu)
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

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

 *  [aoneill5](https://wordpress.org/support/users/aoneill5/)
 * (@aoneill5)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/register_http_request_failed-34/#post-6876466)
 * I am having the same problem. In my case, I’ve traced it to the _wp_remote_request
   function in class.jetpack-client.php. This function has four exit points, and
   I’m observing that the third one is being used when I try to register JetPack.
 * **Steps that lead to the error.**
    1. Log into the site as an administrator.
    2. Click on the “Jetpack” link in the navigation bar.
    3. Click the “Connect Jetpack” button.
    4. After about 15 seconds, I receive the message “Jetpack could not contact WordPress.
       com: register_http_request_failed. This usually means something is incorrectly
       configured on your web host. Operation timed out after 15000 milliseconds with
       0 bytes received”
 * Tracing through the code, I end up at the function I mentioned above. In my case,
   the PHP symbol table holds the values shown below just before the third “return”
   is executed. (Note that to protect my privacy, I obscured the values of $siteurl,
   $home, and $site_name.)
 * Thanks in advance for any help. It’s greatly appreciated.
 * ———-
 * **Relevant Exit Point (code compressed a bit for readability):**
 *     ```
       // Is it an SSL Certificate verification error?
       if ( false === strpos( $message, '14090086' ) // OpenSSL SSL3 certificate error &&
       	false === strpos( $message, '1407E086' ) // OpenSSL SSL2 certificate error &&
       	false === strpos( $message, 'error setting certificate verify locations' ) &&
       	false === strpos( $message, 'Peer certificate cannot be authenticated with' ) &&
       	false === strpos( $message, 'Problem with the SSL CA cert' ) ) {
       	return $response;
       }
       ```
   
 * **Versions:**
    WordPress: 4.4 Jetpack: 3.8.2 PHP: 5.5.9 Platform: Kubuntu 14.04
   LTS Apache: 2.4.7
 * **Variables:**
 *     ```
       array(6) {
         ["url"]=>
         string(49) "https://jetpack.wordpress.com/jetpack.register/1/"
         ["args"]=>
         array(4) {
           ["method"]=>
           string(4) "POST"
           ["body"]=>
           array(10) {
             ["siteurl"]=>
             string(44) "<My correct URL was here.>"
             ["home"]=>
             string(44) "<My correct URL was here, exactly as it was in 'siteurl'.>"
             ["gmt_offset"]=>
             float(-5)
             ["timezone_string"]=>
             string(16) "America/New_York"
             ["site_name"]=>
             string(14) "<My site name was here>"
             ["secret_1"]=>
             string(32) "9EmuUgKme02zA1M2Nk8e4YLPCVAptqnX"
             ["secret_2"]=>
             string(32) "IqclkDdMJNtzCwS2FRsHytFEvQs3Ce36"
             ["site_lang"]=>
             string(5) "en_US"
             ["timeout"]=>
             int(15)
             ["stats_id"]=>
             int(66841128)
           }
           ["headers"]=>
           array(1) {
             ["Accept"]=>
             string(16) "application/json"
           }
           ["timeout"]=>
           int(15)
         }
         ["set_fallback"]=>
         bool(true)
         ["fallback"]=>
         int(0)
         ["response"]=>
         object(WP_Error)#152 (2) {
           ["errors"]=>
           array(1) {
             ["http_request_failed"]=>
             array(1) {
               [0]=>
               string(66) "Operation timed out after 15000 milliseconds with 0 bytes received"
             }
           }
           ["error_data"]=>
           array(0) {
           }
         }
         ["message"]=>
         string(66) "Operation timed out after 15000 milliseconds with 0 bytes received"
       }
       ```
   
 *  [Ryan C.](https://wordpress.org/support/users/ryanc413/)
 * (@ryanc413)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/register_http_request_failed-34/#post-6876500)
 * [@tdugdale](https://wordpress.org/support/users/tdugdale/): While your site is
   publicly accessible, we cannot access your site’s XML-RPC file:
    [https://blendedtoolkit.wisc.edu/xmlrpc.php](https://blendedtoolkit.wisc.edu/xmlrpc.php)
 * This file is used by Jetpack and other plugins and apps to connect to your site,
   and must return the following message:
    `XML-RPC server accepts POST requests
   only.`
 * Since your site returns a “403 Forbidden” error for this page, I would recommend
   that you check the following:
 * 1) Can you see the /xmlrpc.php file at the root of your WordPress installation
   when accessing your site via FTP?
 * 2) Do you use any security plugins that may block access to this file? If so,
   could you try to disable them?
 * 3) Does your hosting provider block access to this file? If you don’t find any
   plugin that may block access to the file on your site, I would recommend that
   you get in touch with your host.
 * After you resolve the issue above, you can try connecting Jetpack again. Please
   let me know how that works for you!
 * [@aoneill5](https://wordpress.org/support/users/aoneill5/): Thanks for all the
   info! Could you please start your own thread, as per the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post)?
   Be sure to include a link to your site.
 * [http://wordpress.org/support/plugin/jetpack#postform](http://wordpress.org/support/plugin/jetpack#postform)
 * Thank you!
 *  [aoneill5](https://wordpress.org/support/users/aoneill5/)
 * (@aoneill5)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/register_http_request_failed-34/#post-6876507)
 * Thanks, and sorry to both of you for not starting with a fresh post. I almost
   never post to forums (but I definitely read them a lot). Per your request, I’ve
   continued my portion of this discussion here: [https://wordpress.org/support/topic/jetpack-registration-register_http_request_failed?replies=1](https://wordpress.org/support/topic/jetpack-registration-register_http_request_failed?replies=1)
 *  [Ryan C.](https://wordpress.org/support/users/ryanc413/)
 * (@ryanc413)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/register_http_request_failed-34/#post-6876598)
 * [@aoneill5](https://wordpress.org/support/users/aoneill5/): No worries! Thanks
   for creating the new thread 🙂

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

The topic ‘register_http_request_failed’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Ryan C.](https://wordpress.org/support/users/ryanc413/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/register_http_request_failed-34/#post-6876598)
 * Status: not resolved