Sitehealth: The REST API encountered an unexpected result

This topic has 9 replies, 3 voices, and was last updated 3 weeks, 2 days ago ago by Tony Rodriguez

  • Avatar: khurram virk
    khurram virk
    Participant
    November 18, 2024 at 19:30

    dear sir

    good day to you!

    it is requested to please guider on this

    The REST API encountered an unexpected result
    Performance
    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 unexpected result was returned:

    REST API Endpoint: https://safeandsecureksa.com/wp-json/wp/v2/types/post?context=edit
    REST API Response: (500) Internal Server Error

    thank you

    8 Answers
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    November 19, 2024 at 12:55

    Hello, khurram virk,

    Thank you for reaching out to us.

    Could you kindly check if the following options are enabled in your settings?

    – Customizer -> Speed Optimization -> Disable Embeds
    – Customizer -> Speed Optimization -> Disable REST API Endpoint

    Additionally, please verify if there are any extra plugins installed that might be disabling the REST API. This is often the case with security-related plugins.

    Should you need further assistance, feel free to contact us.

    Best regards,
    8Theme’s Team

    Avatar: khurram virk
    khurram virk
    Participant
    November 19, 2024 at 16:00

    dear sir

    good day to you!

    thank you for reply, disable embed is ON whereas disable rest api endpoint is OFF

    here is screenshot
    https://snipboard.io/1JGLRd.jpg

    And also provide suggestion for speed optimization (on/off) options while we have wp rocket.

    thank you

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    November 20, 2024 at 16:53

    Hello, khurram virk,

    As you are using WP Rocket, we would kindly recommend setting the following option to “OFF”:
    Customizer -> Speed Optimization -> Disable Embeds.

    Best regards,
    8Theme Team

    Avatar: khurram virk
    khurram virk
    Participant
    November 20, 2024 at 20:03

    dear sir

    good day to you!

    it is still coming the same message. please check speed optimization all settings.

    thank you.

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    November 21, 2024 at 17:56

    Hello, khurram virk,

    Could you please provide us with the link to the page where you are encountering the error?

    Best regards,
    8Theme Team

    Avatar: khurram virk
    khurram virk
    Participant
    November 21, 2024 at 18:15

    dear sir

    greetings!

    here is the link
    https://safeandsecureksa.com/wp-admin/site-health.php

    thank you

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    November 21, 2024 at 20:58

    Hello, khurram virk,

    Thank you for reaching out to us. However, we do not see any mention of “speed optimization” on this page.

    The information provided seems to be related only to “action_scheduler_run,” which is not relevant to the topic at hand, as well as “persistent object cache,” which also does not pertain to our subject.

    Best regards,
    8Theme Team

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    May 6, 2025 at 14:51

    Dear khurram virk,

    Choosing our theme reflects your commitment to quality, and for that, we’re genuinely grateful. As we constantly strive to elevate your experience, your feedback is an invaluable gift. Could you kindly take a moment to rate our product with 5 stars on ThemeForest?

    Click here to share your insights: https://themeforest.net/downloads

    Your support fuels our journey, and we appreciate it more than words can express.

    Best Regards,
    The 8Theme Team

  • Viewing 9 results - 1 through 9 (of 9 total)

The issue related to '‘sitehealth: The REST API encountered an unexpected result’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.