Sitehealth: The REST API encountered an unexpected result

This topic has 8 replies, 2 voices, and was last updated 1 months ago ago by Andrew Mitchell

  • 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

    7 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

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

You must be logged in to reply to this topic.Log in/Sign up

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