Wordpress REST API error

Discussion in 'Server Operation' started by djesys, Jun 26, 2025 at 6:53 PM.

  1. djesys

    djesys Member

    Hi, just installed a fresh WP on latest ISP 3.3.0.p2.
    The Site Health Tab provides me with the following issue. Please help me troubleshoot. thanks

    The REST API is one way that WordPress and other applications communicate with the server. For example, the block editor screen relies on the REST API to display and save your posts and pages.

    When testing the REST API, an error was encountered:

    REST API Endpoint: https://REDACTED.com/index.php?rest_route=/wp/v2/types/post&context=edit
    REST API Response: (http_request_failed) cURL error 28: Connection timed out after 10002 milliseconds
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look at the error.log of the website to see if you get any errors there. You can also try to access the REST endpoint in your web browser.
     
  3. djesys

    djesys Member

    Hi Till,
    I enabled debug logs in WP, but nothing appears under "wp-content". Opening the link in browser results in:

    500 Internal Server Error
    nginx/1.24.0 (Ubuntu)

    got WP debug working:
    [26-Jun-2025 17:17:21 UTC] PHP Warning: get_core_checksums(): An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/forums/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /var/www/clients/client0/web3/web/wp-includes/functions.php on line 6121
     
    Last edited: Jun 26, 2025 at 7:18 PM
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the error.log of the website; it should show you the reason for the 500 error.
     
  5. djesys

    djesys Member

    Indeed:


    2025/06/26 18:04:46 [error] 1055#1055: *716 openat() "/var/www/REDACTED.com/web/error/404.html" failed (2: No such file or directory), client: 179.xx.xxx.23, server: REDACTED.com, request: "GET /favicon.ico HTTP/2.0", host: "REDACTED.com", referrer: "https://REDACTED.com/index.php?rest_route=/wp/v2/types/post&context=edit"
    2025/06/26 18:04:46 [error] 1055#1055: *716 rewrite or internal redirection cycle while internally redirecting to "/error/404.html", client: 179.xx.xxx.23, server: REDACTED.com, request: "GET /favicon.ico HTTP/2.0", host: "REDACTED.com", referrer: "https://REDACTED.com/index.php?rest_route=/wp/v2/types/post&context=edit"
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Switch off custom error pages in website settings.
     

Share This Page