Title: Rest API diagnostic error
Last modified: October 17, 2019

---

# Rest API diagnostic error

 *  [diegpl](https://wordpress.org/support/users/diegpl/)
 * (@diegpl)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/rest-api-diagnostic-error/)
 * On the health diagnostic I am getting this error, what should I do about it?
 *     ```
       The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.
   
       The REST API request failed due to an error.
       Error: [] cURL error 28: Operation timed out after 10002 milliseconds with 0 out of -1 bytes received
       ```
   
 * Thank you!

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/rest-api-diagnostic-error/#post-12040923)
 * See is this article helps:
    [https://docs.presscustomizr.com/article/326-how-to-fix-a-curl-error-28-connection-timed-out-in-wordpress](https://docs.presscustomizr.com/article/326-how-to-fix-a-curl-error-28-connection-timed-out-in-wordpress)
 *  Thread Starter [diegpl](https://wordpress.org/support/users/diegpl/)
 * (@diegpl)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/rest-api-diagnostic-error/#post-12040985)
 * Thank you for the article. I do not think it is a memory issue, because it is
   set to 500. But about these two issues:
 * 1) Ask your host if there is some limitation with wp-cron, or if loopback is 
   disabled.
 * 2) Ask your host if there a firewall or security modules (e.g. mod_security )
   that could block the outgoing cURL requests.
 * How can I check it myself? Do you have any article about it too? Mine is a self
   management server.
 * Thank you very much! 😉
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/rest-api-diagnostic-error/#post-12041020)
 * > 1) Ask your host if there is some limitation with wp-cron, or if loopback is
   > disabled.
 * health diagnostic should also tell you if any issue with loopback.
 * >  2) Ask your host if there a firewall or security modules (e.g. mod_security)
   > that could block the outgoing cURL requests.
 * Contact your hosting provider
 *  Thread Starter [diegpl](https://wordpress.org/support/users/diegpl/)
 * (@diegpl)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/rest-api-diagnostic-error/#post-12041037)
 * Yes, it is saying there is an issue about loopback. I believe about mod_security
   I can find information about it and be able to solve the problem. But I did not
   find much about how to solve the loopback issue:
 * Loopback requests are used to run scheduled events, and are also used by the 
   built-in editors for themes and plugins to verify code stability.
    The loopback
   request to your site failed, this means features relying on them are not currently
   working as expected. Error: [] cURL error 60: Peer’s Certificate has expired.
 * Do you have any tutorial about it? Thank you very much! 😉
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/rest-api-diagnostic-error/#post-12043701)
 * perform until the third steep [https://wordpress.org/support/topic/no-results-in-media-search/#post-12043004](https://wordpress.org/support/topic/no-results-in-media-search/#post-12043004)
   without
    `$show_errors = true;` Curls on other domains? Does it also work for
   https? (the last message indicates the expiration of the certificate …. https
   in use) Create test.php
 *     ```
       <?php
       Undefined_constant;
       $var_error[] = (int) error_get_last();
       function ABC() {
       set_error_handler('var_dump',0);
       return;
       }
       ABC();
       $var_error[] = (int) error_get_last();
       print_r($var_error);
   
       //Your code curl with HTTPS and curl erno here
       ```
   
 * WordPress 5.2 have WSOD protection only if error_get_last() work.

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

The topic ‘Rest API diagnostic error’ is closed to new replies.

## Tags

 * [Diagnostic](https://wordpress.org/support/topic-tag/diagnostic/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/rest-api-diagnostic-error/#post-12043701)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
