The REST IPA did not behave correctly

Just set up a new site and I am receiving this error under the Wordpress Site Health Tool:

"The REST IPA did not behave correctly

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

The REST API did not process the context query parameter correctly."

What I have figured out so far is the error disappears when I either deactivate Yoast or change to the default Twentytweny theme instead of pro (child-theme or regular) - OR it also disappears if I turn off the “REST API: head endpoint” setting that comes with the new Yoast update (seo > general > features).

I have the same plugins and themes as another site so I have no idea why this is happening.
I’m still fairly beginner and I definitely don’t know much about REST IPAs, so any help would be hugely appreciated!

Hi Madeleine,

REST API is used to access the information of WordPress and in this case, Yoast plugin to be accessed outside the boundaries of the WordPress them front-end.

For example, if you have an iPhone or Android app that you want to get the data from your WordPress installation you would use REST API. If there is no feature that you use outside of your WordPress installation the notice that you get is not an important thing and you either can ignore the notice or turn off the Rest API feature of the Yoast plugin as you do not use the feature.

Thank you.

Hi Christopher,

Thank you for the explanation! I don’t believe I need the feature then, which is good.

Do you know why this would suddenly be an error though? As it hasn’t happened on any other sites which use the same theme and plugins together. I just want to make sure it isn’t part of a wider issue.

Hi Madeleinerose,

You’re always welcome!

Site Health performs a test to check if the REST API is accessible (or working good) and if it’s not, which could be because of invalid response, then you’d see the error " The REST API did not behave correctly ".

You might want to check in with Yoast for more detailed explanation. Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.