Title: REST API error
Last modified: June 20, 2022

---

# REST API error

 *  [alexdep](https://wordpress.org/support/users/alexdep/)
 * (@alexdep)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/rest-api-error-31/)
 * Hello WordPress community.
 * I have created a website and put it online beginning of June 2022 and it works
   perfectly.
 * But since 2 days (15 June exactly), the website is very slow to display (more
   than 1 minutes for each page).
    Looking to WP Admin –> Tools –> Site Health, 
   there is this error message: The REST API request failed with an error. Error:
   cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received(
   http_request_failed)
 * I asked my web hosting OVH and they say this is not a problem with the server.
   
   I use PHP 7.4 version
 * I am lost as I do not understand what is happening and I would like help from
   a technical expert.
 * Thank you for any help and support on this matter.
    -  This topic was modified 3 years, 11 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: moved to fixing wordpress
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frest-api-error-31%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [emahajan](https://wordpress.org/support/users/emahajan/)
 * (@emahajan)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/rest-api-error-31/#post-15743500)
 * Have you tested that API in postman or any other tool, whether it’s working fine
   or causing any issue?
    Also, by enabling the debug mode check the logs.
    -  This reply was modified 3 years, 11 months ago by [emahajan](https://wordpress.org/support/users/emahajan/).
 *  Thread Starter [alexdep](https://wordpress.org/support/users/alexdep/)
 * (@alexdep)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/rest-api-error-31/#post-15745005)
 * Dear Rajendra,
    Thank you very much for your message. However, I am afraid to
   not understand what you mean as I am not an expert.
 * How to test the REST API in postman? Can you please explain and clarify how to
   do that?
 * In addition, can you explain me how to enable the debug mode?
 * Thank you for your help and support.
 *  [emahajan](https://wordpress.org/support/users/emahajan/)
 * (@emahajan)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/rest-api-error-31/#post-15745155)
 * You need to Google for this, as its an easy process to test API.
 * Regarding enabling DEBUG mode, on root folder there is a wp-config.php file and
   find following
 * define( ‘WP_DEBUG’, false );
 * Just replace ‘false’ with ‘true’
 * Add add following just below to above code
 * // Enable Debug logging to the /wp-content/debug.log file
    define( ‘WP_DEBUG_LOG’,
   true );
 * You will get more details on following related to debugging
 * > [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
 *  [vikaslalwani123](https://wordpress.org/support/users/vikaslalwani123/)
 * (@vikaslalwani123)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/rest-api-error-31/#post-15952156)
 * Try to review API in postman or use any [postman alternative mentioned here](https://developingdaily.com/article/technology/best-postman-alternatives-open-source/344)
 * You can install Postman, then review this article to send request using postman
 * [https://learning.postman.com/docs/sending-requests/requests/](https://learning.postman.com/docs/sending-requests/requests/)

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

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

## Tags

 * [API REST](https://wordpress.org/support/topic-tag/api-rest/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [vikaslalwani123](https://wordpress.org/support/users/vikaslalwani123/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/rest-api-error-31/#post-15952156)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
