• 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 1 year, 10 months ago by Yui. Reason: moved to fixing wordpress

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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 1 year, 10 months ago by emahajan.
    Thread Starter alexdep

    (@alexdep)

    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.

    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

    Try to review API in postman or use any postman alternative mentioned here

    You can install Postman, then review this article to send request using postman

    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.